1{ lib, buildPythonPackage, fetchPypi 2, pytest 3, pytest-xdist 4, six }: 5 6buildPythonPackage rec { 7 pname = "lazy_import"; 8 version = "0.2.2"; 9 10 src = fetchPypi { 11 inherit pname version; 12 sha256 = "0gca9xj60qr3aprj9qdc66crr4r7hl8wzv6gc9y40nclazwawj91"; 13 }; 14 15 checkInputs = [ 16 pytest 17 pytest-xdist 18 ]; 19 20 propagatedBuildInputs = [ 21 six 22 ]; 23 24 checkPhase = '' 25 cd lazy_import 26 pytest --boxed 27 ''; 28 29 meta = with lib; { 30 description = "lazy_import provides a set of functions that load modules, and related attributes, in a lazy fashion."; 31 homepage = "https://github.com/mnmelo/lazy_import"; 32 license = licenses.gpl3; 33 maintainers = [ maintainers.marenz ]; 34 }; 35}