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

39 lines
719 B
Nix
Raw Normal View History

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