about summary refs log tree commit diff
path: root/pkgs/development/python-modules/pysnow/default.nix
blob: db02f0f390e31ba8c113822d612b3b247c984129 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
{ lib
, buildPythonPackage
, fetchPypi
, isPy27
, pythonAtLeast
, brotli
, ijson
, nose
, requests_oauthlib 
, python_magic
, pytz
}:

buildPythonPackage rec {
  pname = "pysnow";
  version = "0.7.14";
  
  src = fetchPypi {
    inherit pname version;
    sha256 = "0a6ce8b5f247fbfe5a53829c2f22391161e88646742283f861bce32bfe1626f1";
  };

  propagatedBuildInputs = [
    brotli
    ijson 
    python_magic 
    pytz 
    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;
    maintainers = [ maintainers.almac ];  
  };

}