git.iko.soy/typeable/nixpkgs
on master help sign in
python.pkgs.astor: move to separate expression
commitf970ee8e7e923b18c2bfe6f36594fbedaaaeaf70 authorwisut hantanong <wizzup@gmail.com> dateFri 28 Jul 2017, 14:26 (9 years ago) parent6d09e0c
2 files changed+20−16
pkgs/development/python-modules/astor/default.nix+19 pkgs/top-level/python-packages.nix+1−16
pkgs/development/python-modules/astor/default.nixnew file+19
@@ -0,0 +1,19 @@
1+{ stdenv, buildPythonPackage, fetchPypi }:
2+
3+buildPythonPackage rec {
4+ pname = "astor";
5+ version = "0.5";
6+ name = "${pname}-${version}";
7+
8+ src = fetchPypi {
9+ inherit pname version;
10+ sha256 = "1fdafq5hkis1fxqlmhw0sn44zp2ar46nxhbc22cvwg7hsd8z5gsa";
11+ };
12+
13+ meta = with stdenv.lib; {
14+ description = "Library for reading, writing and rewriting python AST";
15+ homepage = https://github.com/berkerpeksag/astor;
16+ license = licenses.bsd3;
17+ maintainers = with maintainers; [ nixy ];
18+ };
19+}
pkgs/top-level/python-packages.nix+1−16
@@ -590,22 +590,7 @@ in {
590590
591591 apsw = callPackage ../development/python-modules/apsw {};
592592
593− astor = buildPythonPackage rec {
594− name = "astor-${version}";
595− version = "0.5";
596−
597− src = pkgs.fetchurl {
598− url = "mirror://pypi/a/astor/${name}.tar.gz";
599− sha256 = "1fdafq5hkis1fxqlmhw0sn44zp2ar46nxhbc22cvwg7hsd8z5gsa";
600− };
601−
602− meta = with pkgs.stdenv.lib; {
603− description = "Library for reading, writing and rewriting python AST";
604− homepage = https://github.com/berkerpeksag/astor;
605− license = licenses.bsd3;
606− maintainers = with maintainers; [ nixy ];
607− };
608− };
593+ astor = callPackage ../development/python-modules/astor {};
609594
610595 asyncio = if (pythonAtLeast "3.3") then buildPythonPackage rec {
611596 name = "asyncio-${version}";