bcb2f287e1
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
36 lines
809 B
Nix
36 lines
809 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
pytestCheckHook,
|
|
setuptools-scm,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "lazy-object-proxy";
|
|
version = "1.10.0";
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-eCR7bUX0OlLvNcJbVYFFnoURciVAikEoo9r4v5ZIrGk=";
|
|
};
|
|
|
|
nativeBuildInputs = [ setuptools-scm ];
|
|
|
|
postPatch = ''
|
|
substituteInPlace pyproject.toml --replace ",<6.0" ""
|
|
substituteInPlace setup.cfg --replace ",<6.0" ""
|
|
'';
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
# Broken tests. Seem to be fixed upstream according to Travis.
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
description = "Fast and thorough lazy object proxy";
|
|
homepage = "https://github.com/ionelmc/python-lazy-object-proxy";
|
|
license = with licenses; [ bsd2 ];
|
|
};
|
|
}
|