3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/retrying/default.nix
Fabian Affolter 07182bf063
python310Packages.retrying: add pythonImportsCheck
- disable on older Python releases
2022-11-29 21:33:29 +01:00

38 lines
658 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, six
, pythonOlder
}:
buildPythonPackage rec {
pname = "retrying";
version = "1.3.4";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-NF2oxXZb2YKx0ZFd65EC/T0fetFr2EqXALhfZNJOjz4=";
};
propagatedBuildInputs = [
six
];
# doesn't ship tests in tarball
doCheck = false;
pythonImportsCheck = [
"retrying"
];
meta = with lib; {
description = "General-purpose retrying library";
homepage = "https://github.com/rholder/retrying";
license = licenses.asl20;
maintainers = with maintainers; [ ];
};
}