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