3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/zipp/default.nix

39 lines
719 B
Nix
Raw Normal View History

2019-04-01 15:58:26 +01:00
{ lib
, buildPythonPackage
, fetchPypi
, setuptools_scm
, pytest
, pytest-flake8
2019-10-24 07:47:52 +01:00
, more-itertools
2020-06-06 07:47:38 +01:00
, toml
2019-04-01 15:58:26 +01:00
}:
buildPythonPackage rec {
pname = "zipp";
2020-06-06 07:47:38 +01:00
version = "3.1.0";
2019-04-01 15:58:26 +01:00
src = fetchPypi {
inherit pname version;
2020-06-06 07:47:38 +01:00
sha256 = "c599e4d75c98f6798c509911d08a22e6c021d074469042177c8c86fb92eefd96";
2019-04-01 15:58:26 +01:00
};
2020-06-06 07:47:38 +01:00
nativeBuildInputs = [ setuptools_scm toml ];
2019-04-01 15:58:26 +01:00
2019-10-24 07:47:52 +01:00
propagatedBuildInputs = [ more-itertools ];
2019-04-01 15:58:26 +01:00
checkInputs = [ pytest pytest-flake8 ];
checkPhase = ''
pytest
'';
2019-06-15 18:22:35 +01:00
# Prevent infinite recursion with pytest
doCheck = false;
2019-04-01 15:58:26 +01:00
meta = with lib; {
description = "Pathlib-compatible object wrapper for zip files";
homepage = "https://github.com/jaraco/zipp";
2019-04-01 15:58:26 +01:00
license = licenses.mit;
};
}