2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, isPy27
|
|
|
|
, fetchPypi
|
|
|
|
, distro
|
|
|
|
, httplib2
|
|
|
|
, oauthlib
|
|
|
|
, setuptools
|
|
|
|
, six
|
|
|
|
, wadllib
|
2021-02-22 21:28:39 +00:00
|
|
|
, fixtures
|
|
|
|
, lazr-uri
|
|
|
|
, pytestCheckHook
|
|
|
|
, wsgi-intercept
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "lazr.restfulclient";
|
2021-09-18 10:52:07 +00:00
|
|
|
version = "0.14.4";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
disabled = isPy27; # namespace is broken for python2
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-09-18 10:52:07 +00:00
|
|
|
sha256 = "bf0fd6b2749b3a2d02711f854c9d23704756f7afed21fb5d5b9809d72aa6d087";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ distro httplib2 oauthlib setuptools six wadllib ];
|
|
|
|
|
2021-02-22 21:28:39 +00:00
|
|
|
# E ModuleNotFoundError: No module named 'lazr.uri'
|
|
|
|
doCheck = false;
|
|
|
|
checkInputs = [ fixtures lazr-uri pytestCheckHook wsgi-intercept ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [ "lazr.restfulclient" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A programmable client library that takes advantage of the commonalities among";
|
|
|
|
homepage = "https://launchpad.net/lazr.restfulclient";
|
|
|
|
license = licenses.lgpl3;
|
|
|
|
maintainers = [ maintainers.marsam ];
|
|
|
|
};
|
|
|
|
}
|