diff --git a/pkgs/development/python-modules/lazr-restfulclient/default.nix b/pkgs/development/python-modules/lazr-restfulclient/default.nix new file mode 100644 index 000000000000..93956c51b256 --- /dev/null +++ b/pkgs/development/python-modules/lazr-restfulclient/default.nix @@ -0,0 +1,36 @@ +{ lib +, buildPythonPackage +, isPy27 +, fetchPypi +, distro +, httplib2 +, oauthlib +, setuptools +, six +, wadllib +}: + +buildPythonPackage rec { + pname = "lazr.restfulclient"; + version = "0.14.3"; + + disabled = isPy27; # namespace is broken for python2 + + src = fetchPypi { + inherit pname version; + sha256 = "9f28bbb7c00374159376bd4ce36b4dacde7c6b86a0af625aa5e3ae214651a690"; + }; + + propagatedBuildInputs = [ distro httplib2 oauthlib setuptools six wadllib ]; + + doCheck = false; # requires to package lazr.restful, lazr.authentication, and wsgi_intercept + + 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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 9073348d4011..5e8856266f21 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -823,6 +823,8 @@ in { lazr_delegates = callPackage ../development/python-modules/lazr/delegates.nix { }; + lazr-restfulclient = callPackage ../development/python-modules/lazr-restfulclient { }; + lazr-uri = callPackage ../development/python-modules/lazr-uri { }; libmr = callPackage ../development/python-modules/libmr { };