2018-10-15 21:48:11 +01:00
|
|
|
{ stdenv
|
|
|
|
, 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-06-06 07:47:16 +01:00
|
|
|
version = "1.5.0";
|
2018-10-15 21:48:11 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-06-06 07:47:16 +01:00
|
|
|
sha256 = "a0aed261060cd0372abf08d16399b1224dbb5b400312e6b00f2b23eabe1d4e96";
|
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;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|