summary refs log tree commit diff
path: root/pkgs/development/python-modules/setuptools
diff options
context:
space:
mode:
authorFrederik Rietdijk <fridh@fridh.nl>2017-06-01 18:21:23 +0200
committerFrederik Rietdijk <fridh@fridh.nl>2017-06-01 18:24:58 +0200
commit6dfbfd6a070f89dc698d08500fe3b73ebe5b3d12 (patch)
treea30a2a74febeb8888e99d1c8c18fcf06d0f21659 /pkgs/development/python-modules/setuptools
parentbdd3f307397a9c2e7ed838865ec4e70f5c36c722 (diff)
downloadnixlib-6dfbfd6a070f89dc698d08500fe3b73ebe5b3d12.tar
nixlib-6dfbfd6a070f89dc698d08500fe3b73ebe5b3d12.tar.gz
nixlib-6dfbfd6a070f89dc698d08500fe3b73ebe5b3d12.tar.bz2
nixlib-6dfbfd6a070f89dc698d08500fe3b73ebe5b3d12.tar.lz
nixlib-6dfbfd6a070f89dc698d08500fe3b73ebe5b3d12.tar.xz
nixlib-6dfbfd6a070f89dc698d08500fe3b73ebe5b3d12.tar.zst
nixlib-6dfbfd6a070f89dc698d08500fe3b73ebe5b3d12.zip
python.pkgs.setuptools: 30.2.0 -> 36.0.1
Diffstat (limited to 'pkgs/development/python-modules/setuptools')
-rw-r--r--pkgs/development/python-modules/setuptools/default.nix25
1 files changed, 15 insertions, 10 deletions
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;
   };