python310Packages.zipp: adopt, execute tests

main
Sandro Jäckel 2 years ago
parent 283500ede3
commit 34a388a7dd
No known key found for this signature in database
GPG Key ID: 3AF5A43A3EECC2E5
  1. 22
      pkgs/development/python-modules/zipp/default.nix

@ -1,12 +1,13 @@
{ lib
, buildPythonPackage
, fetchPypi
, more-itertools
, func-timeout
, jaraco_itertools
, pythonOlder
, setuptools-scm
}:
buildPythonPackage rec {
let zipp = buildPythonPackage rec {
pname = "zipp";
version = "3.7.0";
format = "setuptools";
@ -22,21 +23,26 @@ buildPythonPackage rec {
setuptools-scm
];
propagatedBuildInputs = [
more-itertools
];
# Prevent infinite recursion with pytest
doCheck = false;
checkInputs = [
func-timeout
jaraco_itertools
];
pythonImportsCheck = [
"zipp"
];
passthru.tests = {
check = zipp.overridePythonAttrs (_: { doCheck = true; });
};
meta = with lib; {
description = "Pathlib-compatible object wrapper for zip files";
homepage = "https://github.com/jaraco/zipp";
license = licenses.mit;
maintainers = with maintainers; [ ];
maintainers = with maintainers; [ SuperSandro2000 ];
};
}
}; in zipp

Loading…
Cancel
Save