python.pkgs.astor: move to separate expression
This commit is contained in:
parent
6d09e0c9be
commit
f970ee8e7e
19
pkgs/development/python-modules/astor/default.nix
Normal file
19
pkgs/development/python-modules/astor/default.nix
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
{ stdenv, buildPythonPackage, fetchPypi }:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "astor";
|
||||||
|
version = "0.5";
|
||||||
|
name = "${pname}-${version}";
|
||||||
|
|
||||||
|
src = fetchPypi {
|
||||||
|
inherit pname version;
|
||||||
|
sha256 = "1fdafq5hkis1fxqlmhw0sn44zp2ar46nxhbc22cvwg7hsd8z5gsa";
|
||||||
|
};
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
description = "Library for reading, writing and rewriting python AST";
|
||||||
|
homepage = https://github.com/berkerpeksag/astor;
|
||||||
|
license = licenses.bsd3;
|
||||||
|
maintainers = with maintainers; [ nixy ];
|
||||||
|
};
|
||||||
|
}
|
@ -590,22 +590,7 @@ in {
|
|||||||
|
|
||||||
apsw = callPackage ../development/python-modules/apsw {};
|
apsw = callPackage ../development/python-modules/apsw {};
|
||||||
|
|
||||||
astor = buildPythonPackage rec {
|
astor = callPackage ../development/python-modules/astor {};
|
||||||
name = "astor-${version}";
|
|
||||||
version = "0.5";
|
|
||||||
|
|
||||||
src = pkgs.fetchurl {
|
|
||||||
url = "mirror://pypi/a/astor/${name}.tar.gz";
|
|
||||||
sha256 = "1fdafq5hkis1fxqlmhw0sn44zp2ar46nxhbc22cvwg7hsd8z5gsa";
|
|
||||||
};
|
|
||||||
|
|
||||||
meta = with pkgs.stdenv.lib; {
|
|
||||||
description = "Library for reading, writing and rewriting python AST";
|
|
||||||
homepage = https://github.com/berkerpeksag/astor;
|
|
||||||
license = licenses.bsd3;
|
|
||||||
maintainers = with maintainers; [ nixy ];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
asyncio = if (pythonAtLeast "3.3") then buildPythonPackage rec {
|
asyncio = if (pythonAtLeast "3.3") then buildPythonPackage rec {
|
||||||
name = "asyncio-${version}";
|
name = "asyncio-${version}";
|
||||||
|
Loading…
Reference in New Issue
Block a user