Merge pull request #171743 from SuperSandro2000/zipp

python310Packages.zipp: adopt, execute tests
This commit is contained in:
Sandro 2022-05-09 17:30:52 +02:00 committed by GitHub
commit 580a295e9d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 45 additions and 8 deletions

View file

@ -0,0 +1,29 @@
{ lib
, buildPythonPackage
, fetchPypi
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "func-timeout";
version = "4.3.5";
src = fetchPypi {
pname = "func_timeout";
inherit version;
sha256 = "74cd3c428ec94f4edfba81f9b2f14904846d5ffccc27c92433b8b5939b5575dd";
};
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [ "func_timeout" ];
meta = with lib; {
description = "Allows you to specify timeouts when calling any existing function. Also provides support for stoppable-threads";
homepage = "https://github.com/kata198/func_timeout";
license = licenses.lgpl3Only;
maintainers = with maintainers; [ SuperSandro2000 ];
};
}

View file

@ -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

View file

@ -3218,6 +3218,8 @@ in {
ftputil = callPackage ../development/python-modules/ftputil { };
func-timeout = callPackage ../development/python-modules/func-timeout { };
funcparserlib = callPackage ../development/python-modules/funcparserlib { };
funcsigs = callPackage ../development/python-modules/funcsigs { };