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