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

python3Packages.lazy_import: fix test, update license & description
This commit is contained in:
Ryan Lahfa 2023-05-17 11:20:39 +02:00 committed by GitHub
commit c9e26a2cf3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,6 +1,8 @@
{ lib, buildPythonPackage, fetchPypi
, pytest
, pytest-xdist
, pytestCheckHook
, pytest-forked
, py
, python
, six }:
buildPythonPackage rec {
@ -13,23 +15,28 @@ 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 = [ ];
};
}