nixpkgs-suyu/pkgs/development/python-modules/zipp/default.nix

38 lines
705 B
Nix
Raw Normal View History

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