diff --git a/pkgs/development/python-modules/distutils_extra/default.nix b/pkgs/development/python-modules/distutils_extra/default.nix new file mode 100644 index 000000000000..52b3b41b02bc --- /dev/null +++ b/pkgs/development/python-modules/distutils_extra/default.nix @@ -0,0 +1,21 @@ +{ stdenv +, buildPythonPackage +, fetchurl +}: + +buildPythonPackage rec { + pname = "distutils-extra"; + version = "2.39"; + + src = fetchurl { + url = "http://launchpad.net/python-distutils-extra/trunk/${version}/+download/python-${pname}-${version}.tar.gz"; + sha256 = "1bv3h2p9ffbzyddhi5sccsfwrm3i6yxzn0m06fdxkj2zsvs28gvj"; + }; + + meta = with stdenv.lib; { + homepage = https://launchpad.net/python-distutils-extra; + description = "Enhancements to Python's distutils"; + license = licenses.gpl2; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 47281cf65632..91e8948d2f18 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2213,21 +2213,7 @@ in { descartes = callPackage ../development/python-modules/descartes { }; - distutils_extra = buildPythonPackage rec { - name = "distutils-extra-${version}"; - version = "2.39"; - - src = pkgs.fetchurl { - url = "http://launchpad.net/python-distutils-extra/trunk/${version}/+download/python-${name}.tar.gz"; - sha256 = "1bv3h2p9ffbzyddhi5sccsfwrm3i6yxzn0m06fdxkj2zsvs28gvj"; - }; - - meta = { - homepage = https://launchpad.net/python-distutils-extra; - description = "Enhancements to Python's distutils"; - license = licenses.gpl2; - }; - }; + distutils_extra = callPackage ../development/python-modules/distutils_extra { }; pyxdg = buildPythonPackage rec { name = "pyxdg-0.25";