2021-01-25 00:26:54 -08:00
|
|
|
{ lib
|
2018-10-15 13:48:11 -07:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2021-03-24 05:29:11 -07:00
|
|
|
, pytestCheckHook
|
2019-10-17 00:30:20 -07:00
|
|
|
, setuptools_scm
|
2018-10-15 13:48:11 -07:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "lazy-object-proxy";
|
2021-03-24 02:28:17 -07:00
|
|
|
version = "1.6.0";
|
2018-10-15 13:48:11 -07:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-03-24 02:28:17 -07:00
|
|
|
sha256 = "489000d368377571c6f982fba6497f2aa13c6d1facc40660963da62f5c379726";
|
2018-10-15 13:48:11 -07:00
|
|
|
};
|
|
|
|
|
2021-03-24 05:29:11 -07:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools_scm
|
|
|
|
];
|
2019-10-17 00:30:20 -07:00
|
|
|
|
2021-03-24 05:29:11 -07:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace pyproject.toml --replace ",<6.0" ""
|
|
|
|
substituteInPlace setup.cfg --replace ",<6.0" ""
|
2018-10-15 13:48:11 -07:00
|
|
|
'';
|
|
|
|
|
2021-03-24 05:29:11 -07:00
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2018-10-15 13:48:11 -07:00
|
|
|
# Broken tests. Seem to be fixed upstream according to Travis.
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-01-10 23:54:33 -08:00
|
|
|
meta = with lib; {
|
2018-10-15 13:48:11 -07:00
|
|
|
description = "A fast and thorough lazy object proxy";
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://github.com/ionelmc/python-lazy-object-proxy";
|
2018-10-15 13:48:11 -07:00
|
|
|
license = with licenses; [ bsd2 ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|