pythonPackages.retrying: refactor move to python-modules

This commit is contained in:
Chris Ostrouchov 2018-10-25 20:29:48 -04:00 committed by Frederik Rietdijk
parent 62ca7b6dd4
commit 95d05603d3
2 changed files with 28 additions and 18 deletions

View File

@ -0,0 +1,27 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, six
}:
buildPythonPackage rec {
pname = "retrying";
version = "1.3.3";
src = fetchPypi {
inherit pname version;
sha256 = "0fwp86xv0rvkncjdvy2mwcvbglw4w9k0fva25i7zx8kd19b3kh08";
};
propagatedBuildInputs = [ six ];
# doesn't ship tests in tarball
doCheck = false;
meta = with stdenv.lib; {
homepage = https://github.com/rholder/retrying;
description = "General-purpose retrying library";
license = licenses.asl20;
};
}

View File

@ -3049,24 +3049,7 @@ in {
lz4 = callPackage ../development/python-modules/lz4 { };
retrying = buildPythonPackage rec {
name = "retrying-${version}";
version = "1.3.3";
src = pkgs.fetchurl {
url = "mirror://pypi/r/retrying/retrying-1.3.3.tar.gz";
sha256 = "0fwp86xv0rvkncjdvy2mwcvbglw4w9k0fva25i7zx8kd19b3kh08";
};
propagatedBuildInputs = with self; [ six ];
# doesn't ship tests in tarball
doCheck = false;
meta = with stdenv.lib; {
homepage = https://github.com/rholder/retrying;
};
};
retrying = callPackage ../development/python-modules/retrying { };
fasteners = buildPythonPackage rec {
name = "fasteners-${version}";