python310Packages.six: run tests

This commit is contained in:
Robert Schütz 2022-12-09 11:00:20 -08:00 committed by Robert Schütz
parent 357d6e8956
commit 9551ca3318
2 changed files with 15 additions and 10 deletions

View file

@ -1,30 +1,31 @@
{ lib
, buildPythonPackage
, fetchPypi
, pytest
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "six";
version = "1.16.0";
format = "setuptools";
src = fetchPypi {
inherit pname version;
sha256 = "1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926";
};
checkInputs = [ pytest ];
checkInputs = [
pytestCheckHook
];
checkPhase = ''
py.test test_six.py
'';
# To prevent infinite recursion with pytest
doCheck = false;
pythonImportsCheck = [ "six" ];
meta = {
description = "A Python 2 and 3 compatibility library";
homepage = "https://pypi.python.org/pypi/six/";
changelog = "https://github.com/benjaminp/six/blob/${version}/CHANGES";
description = "Python 2 and 3 compatibility library";
homepage = "https://github.com/benjaminp/six";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ dotlambda ];
};
}

View file

@ -75,6 +75,10 @@ with self; with super; {
setuptools-scm = callPackage ../development/python2-modules/setuptools-scm { };
six = super.six.overridePythonAttrs (_: {
doCheck = false; # circular dependency with pytest
});
zeek = disabled super.zeek;
zipp = callPackage ../development/python2-modules/zipp { };