nixpkgs/pkgs/development/python-modules/pysnow/default.nix

45 lines
774 B
Nix
Raw Normal View History

2020-02-10 22:10:01 +00:00
{ lib
, buildPythonPackage
, fetchPypi
, isPy27
, pythonAtLeast
, brotli
, ijson
, nose
2020-08-25 03:07:09 +01:00
, requests_oauthlib
2020-02-10 22:10:01 +00:00
, python_magic
, pytz
}:
buildPythonPackage rec {
pname = "pysnow";
version = "0.7.16";
2020-08-25 03:07:09 +01:00
2020-02-10 22:10:01 +00:00
src = fetchPypi {
inherit pname version;
sha256 = "5df61091470e48b5b3a6ea75637f69d3aacae20041487ea457a9a0e3093fba8c";
2020-02-10 22:10:01 +00:00
};
propagatedBuildInputs = [
brotli
2020-08-25 03:07:09 +01:00
ijson
python_magic
pytz
2020-02-10 22:10:01 +00:00
requests_oauthlib
];
checkInputs = [ nose ];
checkPhase = ''
nosetests --cover-package=pysnow --with-coverage --cover-erase
'';
meta = with lib; {
description = "ServiceNow HTTP client library written in Python";
homepage = "https://github.com/rbw/pysnow";
license = licenses.mit;
2020-08-25 03:07:09 +01:00
maintainers = [ maintainers.almac ];
2020-02-10 22:10:01 +00:00
};
}