diff --git a/pkgs/development/python-modules/setuptools/default.nix b/pkgs/development/python-modules/setuptools/default.nix index 63e05736d796..59fe5f148399 100644 --- a/pkgs/development/python-modules/setuptools/default.nix +++ b/pkgs/development/python-modules/setuptools/default.nix @@ -1,18 +1,23 @@ -{ stdenv, lib, fetchurl, python, wrapPython }: +{ stdenv +, fetchPypi +, python +, wrapPython +, unzip +}: +# Should use buildPythonPackage here somehow stdenv.mkDerivation rec { pname = "setuptools"; - shortName = "${pname}-${version}"; - name = "${python.libPrefix}-${shortName}"; + version = "36.0.1"; + name = "${python.libPrefix}-${pname}-${version}"; - version = "30.2.0"; - - src = fetchurl { - url = "mirror://pypi/${builtins.substring 0 1 pname}/${pname}/${shortName}.tar.gz"; - sha256 = "f865709919903e3399343c0b3c42f95e9aeddc41e38cfb334fb2bb5dfa384857"; + src = fetchPypi { + inherit pname version; + extension = "zip"; + sha256 = "e17c4687fddd6d70a6604ac0ad25e33324cec71b5137267dd5c45e103c4b288a"; }; - buildInputs = [ python wrapPython ]; + buildInputs = [ python wrapPython unzip ]; doCheck = false; # requires pytest installPhase = '' dst=$out/${python.sitePackages} @@ -27,7 +32,7 @@ stdenv.mkDerivation rec { meta = with stdenv.lib; { description = "Utilities to facilitate the installation of Python packages"; homepage = http://pypi.python.org/pypi/setuptools; - license = with lib.licenses; [ psfl zpt20 ]; + license = with licenses; [ psfl zpt20 ]; platforms = platforms.all; priority = 10; };