Unverified Commit c9e26a2c authored by Ryan Lahfa's avatar Ryan Lahfa Committed by GitHub
Browse files

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

python3Packages.lazy_import: fix test, update license & description
parents 87a34eee 748d0ba7
Loading
Loading
Loading
Loading
+17 −10
Original line number Diff line number Diff line
{ 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 = [ ];
  };
}