mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-17 09:34:36 +00:00
Merge pull request #232201 from natsukium/python3Packages.lazy_import/fix
python3Packages.lazy_import: fix test, update license & description
This commit is contained in:
commit
c9e26a2cf3
@ -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 = [ ];
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user