Unverified Commit e81dc993 authored by OTABI Tomoya's avatar OTABI Tomoya Committed by GitHub
Browse files

Merge pull request #313056 from Moraxyc/fix-lazy-import

python312Packages.lazy-import: remove
parents 63347957 6031d4a7
Loading
Loading
Loading
Loading
+0 −44
Original line number Diff line number Diff line
{ lib, buildPythonPackage, fetchPypi
, pytestCheckHook
, pytest-forked
, py
, python
, six }:

buildPythonPackage rec {
  pname = "lazy-import";
  version = "0.2.2";
  format = "setuptools";

  src = fetchPypi {
    pname = "lazy_import";
    inherit version;
    sha256 = "0gca9xj60qr3aprj9qdc66crr4r7hl8wzv6gc9y40nclazwawj91";
  };

  nativeCheckInputs = [
    pytestCheckHook
    pytest-forked
    py
  ];

  propagatedBuildInputs = [
    six
  ];

  preCheck = ''
    # avoid AttributeError: module 'py' has no attribute 'process'
    export PYTHONPATH=${py}/${python.sitePackages}:$PYTHONPATH
  '';

  pytestFlagsArray = [
    "--forked"
  ];

  meta = with lib; {
    description = "A set of functions that load modules, and related attributes, in a lazy fashion";
    homepage = "https://github.com/mnmelo/lazy_import";
    license = licenses.gpl3Plus;
    maintainers = [ ];
  };
}
+1 −0
Original line number Diff line number Diff line
@@ -259,6 +259,7 @@ mapAliases ({
  lazr_config = lazr-config; # added 2023-11-03
  lazr_delegates = lazr-delegates; # added 2023-11-03
  lazy_import = lazy-import; # added 2024-01-07
  lazy-import = throw "lazy-import has been removed because it was unused."; # added 2024-05-20
  lazy_imports = lazy-imports; # added 2023-10-13
  ledger_agent = ledger-agent; # Added 2024-01-07
  lektor = throw "lektor has been promoted to a top-level attribute name: `pkgs.lektor`"; # added 2023-08-01
+0 −2
Original line number Diff line number Diff line
@@ -6527,8 +6527,6 @@ self: super: with self; {
  lazy = callPackage ../development/python-modules/lazy { };
  lazy-import = callPackage ../development/python-modules/lazy-import { };
  lazy-imports = callPackage ../development/python-modules/lazy-imports { };
  lazy-loader = callPackage ../development/python-modules/lazy-loader { };