2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2022-05-18 14:49:53 +00:00
|
|
|
, func-timeout
|
2023-08-04 22:07:22 +00:00
|
|
|
, jaraco-itertools
|
2022-02-10 20:34:41 +00:00
|
|
|
, pythonOlder
|
|
|
|
, setuptools-scm
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
let zipp = buildPythonPackage rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "zipp";
|
2023-08-10 07:59:29 +00:00
|
|
|
version = "3.16.2";
|
2022-06-26 10:26:21 +00:00
|
|
|
format = "pyproject";
|
2022-02-10 20:34:41 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-08-10 07:59:29 +00:00
|
|
|
hash = "sha256-68FZRqp4vWNFiZL8gew7b3sektUcNebeHDgE5zt5kUc=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools-scm
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# Prevent infinite recursion with pytest
|
|
|
|
doCheck = false;
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-05-18 14:49:53 +00:00
|
|
|
func-timeout
|
2023-08-04 22:07:22 +00:00
|
|
|
jaraco-itertools
|
2022-05-18 14:49:53 +00:00
|
|
|
];
|
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"zipp"
|
|
|
|
];
|
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
passthru.tests = {
|
|
|
|
check = zipp.overridePythonAttrs (_: { doCheck = true; });
|
|
|
|
};
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Pathlib-compatible object wrapper for zip files";
|
|
|
|
homepage = "https://github.com/jaraco/zipp";
|
|
|
|
license = licenses.mit;
|
2023-08-04 22:07:22 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2022-05-18 14:49:53 +00:00
|
|
|
}; in zipp
|