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-11-19 14:35:37 +00:00
|
|
|
version = "1.4.3";
|
2018-10-15 21:48:11 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-11-19 14:35:37 +00:00
|
|
|
sha256 = "f3900e8a5de27447acbf900b4750b0ddfd7ec1ea7fbaf11dfa911141bc522af0";
|
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 ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|