1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 pytestCheckHook, 6 setuptools-scm, 7}: 8 9buildPythonPackage rec { 10 pname = "lazy-object-proxy"; 11 version = "1.10.0"; 12 format = "setuptools"; 13 14 src = fetchPypi { 15 inherit pname version; 16 hash = "sha256-eCR7bUX0OlLvNcJbVYFFnoURciVAikEoo9r4v5ZIrGk="; 17 }; 18 19 nativeBuildInputs = [ setuptools-scm ]; 20 21 postPatch = '' 22 substituteInPlace pyproject.toml --replace ",<6.0" "" 23 substituteInPlace setup.cfg --replace ",<6.0" "" 24 ''; 25 26 nativeCheckInputs = [ pytestCheckHook ]; 27 28 # Broken tests. Seem to be fixed upstream according to Travis. 29 doCheck = false; 30 31 meta = with lib; { 32 description = "A fast and thorough lazy object proxy"; 33 homepage = "https://github.com/ionelmc/python-lazy-object-proxy"; 34 license = with licenses; [ bsd2 ]; 35 }; 36}