summary refs log tree commit diff
path: root/pkgs/development/python-modules/jira/default.nix
blob: a3f790abfc5166d25232be56616b25e42b3a518f (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
{ lib, buildPythonPackage, fetchPypi, isPy3k
, pytest, pytest-runner, pbr, glibcLocales , pytest-cov
, requests, requests_oauthlib, requests-toolbelt, defusedxml
, ipython
}:

buildPythonPackage rec {
  pname = "jira";
  version = "2.0.0";

  PBR_VERSION = version;

  src = fetchPypi {
    inherit pname version;
    sha256 = "e2a94adff98e45b29ded030adc76103eab34fa7d4d57303f211f572bedba0e93";
  };

  buildInputs = [ glibcLocales pytest pytest-cov pytest-runner pbr ];
  propagatedBuildInputs = [ requests requests_oauthlib requests-toolbelt defusedxml pbr ipython ];

  # impure tests because of connectivity attempts to jira servers
  doCheck = false;

  patches = [ ./sphinx-fix.patch ];

  LC_ALL = "en_US.utf8";

  disabled = !isPy3k;

  meta = with lib; {
    description = "This library eases the use of the JIRA REST API from Python.";
    license = licenses.bsd2;
    maintainers = with maintainers; [ globin ];
  };
}