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";
|
2019-10-17 08:28:38 +01:00
|
|
|
version = "1.4.2";
|
2018-10-15 21:48:11 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-10-17 08:28:38 +01:00
|
|
|
sha256 = "fd135b8d35dfdcdb984828c84d695937e58cc5f49e1c854eb311c4d6aa03f4f1";
|
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";
|
|
|
|
homepage = https://github.com/ionelmc/python-lazy-object-proxy;
|
|
|
|
license = with licenses; [ bsd2 ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|