2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2018-10-15 21:48:11 +01:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pytest
|
2019-10-17 08:30:20 +01:00
|
|
|
, setuptools_scm
|
2018-10-15 21:48:11 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "lazy-object-proxy";
|
2020-11-29 14:04:33 +00:00
|
|
|
version = "1.5.2";
|
2018-10-15 21:48:11 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-11-29 14:04:33 +00:00
|
|
|
sha256 = "5944a9b95e97de1980c65f03b79b356f30a43de48682b8bdd90aa5089f0ec1f4";
|
2018-10-15 21:48:11 +01:00
|
|
|
};
|
|
|
|
|
2019-10-17 08:30:20 +01:00
|
|
|
nativeBuildInputs = [ setuptools_scm ];
|
|
|
|
|
|
|
|
checkInputs = [ pytest ];
|
2018-10-15 21:48:11 +01:00
|
|
|
checkPhase = ''
|
|
|
|
py.test tests
|
|
|
|
'';
|
|
|
|
|
|
|
|
# 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 ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|