python.pkgs.setuptools: 30.2.0 -> 36.0.1

This commit is contained in:
Frederik Rietdijk 2017-06-01 18:21:23 +02:00
parent bdd3f30739
commit 6dfbfd6a07

View File

@ -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;
};