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

Loading…
Cancel
Save