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