diff options
author | wisut hantanong <wizzup@gmail.com> | 2017-07-28 14:26:20 +0700 |
---|---|---|
committer | wisut hantanong <wizzup@gmail.com> | 2017-07-28 16:07:36 +0700 |
commit | f970ee8e7e923b18c2bfe6f36594fbedaaaeaf70 (patch) | |
tree | b29b94c92769e66b3b2b2698ec56c9ed531b874e /pkgs | |
parent | 6d09e0c9bea3944e9c7dfa4601d2454886afb257 (diff) | |
download | nixlib-f970ee8e7e923b18c2bfe6f36594fbedaaaeaf70.tar nixlib-f970ee8e7e923b18c2bfe6f36594fbedaaaeaf70.tar.gz nixlib-f970ee8e7e923b18c2bfe6f36594fbedaaaeaf70.tar.bz2 nixlib-f970ee8e7e923b18c2bfe6f36594fbedaaaeaf70.tar.lz nixlib-f970ee8e7e923b18c2bfe6f36594fbedaaaeaf70.tar.xz nixlib-f970ee8e7e923b18c2bfe6f36594fbedaaaeaf70.tar.zst nixlib-f970ee8e7e923b18c2bfe6f36594fbedaaaeaf70.zip |
python.pkgs.astor: move to separate expression
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/python-modules/astor/default.nix | 19 | ||||
-rw-r--r-- | pkgs/top-level/python-packages.nix | 17 |
2 files changed, 20 insertions, 16 deletions
diff --git a/pkgs/development/python-modules/astor/default.nix b/pkgs/development/python-modules/astor/default.nix new file mode 100644 index 000000000000..965bf37d5200 --- /dev/null +++ b/pkgs/development/python-modules/astor/default.nix @@ -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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 34861b0289b2..239579bb59ee 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -590,22 +590,7 @@ in { apsw = callPackage ../development/python-modules/apsw {}; - astor = buildPythonPackage rec { - 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 ]; - }; - }; + astor = callPackage ../development/python-modules/astor {}; asyncio = if (pythonAtLeast "3.3") then buildPythonPackage rec { name = "asyncio-${version}"; |