2019-04-01 15:58:26 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2021-06-03 11:09:11 +01:00
|
|
|
, setuptools-scm
|
2019-04-01 15:58:26 +01:00
|
|
|
, 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";
|
2021-03-24 09:28:33 +00:00
|
|
|
version = "3.4.1";
|
2019-04-01 15:58:26 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-03-24 09:28:33 +00:00
|
|
|
sha256 = "3607921face881ba3e026887d8150cca609d517579abe052ac81fc5aeffdbd76";
|
2019-04-01 15:58:26 +01:00
|
|
|
};
|
|
|
|
|
2021-06-03 11:09:11 +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";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/jaraco/zipp";
|
2019-04-01 15:58:26 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|