Merge pull request #232201 from natsukium/python3Packages.lazy_import/fix

python3Packages.lazy_import: fix test, update license & description

Changed files
+17 -10
pkgs
development
python-modules
lazy_import
+17 -10
pkgs/development/python-modules/lazy_import/default.nix
···
{ lib, buildPythonPackage, fetchPypi
-
, pytest
-
, pytest-xdist
+
, pytestCheckHook
+
, pytest-forked
+
, py
+
, python
, six }:
buildPythonPackage rec {
···
};
nativeCheckInputs = [
-
pytest
-
pytest-xdist
+
pytestCheckHook
+
pytest-forked
+
py
];
propagatedBuildInputs = [
six
];
-
checkPhase = ''
-
cd lazy_import
-
pytest --boxed
+
preCheck = ''
+
# avoid AttributeError: module 'py' has no attribute 'process'
+
export PYTHONPATH=${py}/${python.sitePackages}:$PYTHONPATH
'';
+
+
pytestFlagsArray = [
+
"--forked"
+
];
meta = with lib; {
-
description = "lazy_import provides a set of functions that load modules, and related attributes, in a lazy fashion.";
+
description = "A set of functions that load modules, and related attributes, in a lazy fashion";
homepage = "https://github.com/mnmelo/lazy_import";
-
license = licenses.gpl3;
-
maintainers = [ maintainers.marenz ];
+
license = licenses.gpl3Plus;
+
maintainers = [ ];
};
}