From d1a48cc23ecfd0492954b9c466a3d26416cef030 Mon Sep 17 00:00:00 2001 From: Chris Ostrouchov Date: Tue, 16 Oct 2018 17:05:31 -0400 Subject: [PATCH] pythonPackages.uncompyle6: refactor move to python-modules --- .../python-modules/uncompyle6/default.nix | 25 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 15 +---------- 2 files changed, 26 insertions(+), 14 deletions(-) create mode 100644 pkgs/development/python-modules/uncompyle6/default.nix diff --git a/pkgs/development/python-modules/uncompyle6/default.nix b/pkgs/development/python-modules/uncompyle6/default.nix new file mode 100644 index 000000000000..89edc8f184ca --- /dev/null +++ b/pkgs/development/python-modules/uncompyle6/default.nix @@ -0,0 +1,25 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +, spark_parser +, xdis +}: + +buildPythonPackage rec { + pname = "uncompyle6"; + version = "2.8.3"; + + src = fetchPypi { + inherit pname version; + sha256 = "0hx5sji6qjvnq1p0zhvyk5hgracpv2w6iar1j59qwllxv115ffi1"; + }; + + propagatedBuildInputs = [ spark_parser xdis ]; + + meta = with stdenv.lib; { + description = "Python cross-version byte-code deparser"; + homepage = https://github.com/rocky/python-uncompyle6/; + license = licenses.mit; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index fe0b16298b2b..e5823130a53d 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2466,20 +2466,7 @@ in { xdis = callPackage ../development/python-modules/xdis { }; - uncompyle6 = buildPythonPackage rec { - name = "uncompyle6-${version}"; - version = "2.8.3"; - src = pkgs.fetchurl { - url = "mirror://pypi/u/uncompyle6/${name}.tar.gz"; - sha256 = "0hx5sji6qjvnq1p0zhvyk5hgracpv2w6iar1j59qwllxv115ffi1"; - }; - propagatedBuildInputs = with self; [ spark_parser xdis ]; - meta = { - description = "Python cross-version byte-code deparser"; - homepage = https://github.com/rocky/python-uncompyle6/; - license = licenses.mit; - }; - }; + uncompyle6 = callPackage ../development/python-modules/uncompyle6 { }; lsi = buildPythonPackage rec { name = "lsi-${version}";