2018-05-01 12:53:11 +02:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, isPy3k
|
|
|
|
, pytest, pytestrunner, pbr, glibcLocales , pytestcov
|
2018-06-03 22:11:29 +02:00
|
|
|
, requests, requests_oauthlib, requests_toolbelt, defusedxml
|
|
|
|
, ipython
|
|
|
|
}:
|
2018-04-19 17:47:32 +02:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "jira";
|
2018-05-09 16:47:46 +02:00
|
|
|
version = "1.0.15";
|
2018-04-19 17:47:32 +02:00
|
|
|
|
2018-06-03 22:11:29 +02:00
|
|
|
PBR_VERSION = version;
|
|
|
|
|
2018-04-19 17:47:32 +02:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-05-09 16:47:46 +02:00
|
|
|
sha256 = "20108a1d5b0dd058d5d4e0047f2d09ee06aaa413b22ca4d5c249e86167417fe8";
|
2018-04-19 17:47:32 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ glibcLocales pytest pytestcov pytestrunner pbr ];
|
2018-06-03 22:11:29 +02:00
|
|
|
propagatedBuildInputs = [ requests requests_oauthlib requests_toolbelt defusedxml pbr ipython ];
|
|
|
|
|
|
|
|
# impure tests because of connectivity attempts to jira servers
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
patches = [ ./sphinx-fix.patch ];
|
2018-04-19 17:47:32 +02:00
|
|
|
|
|
|
|
LC_ALL = "en_US.utf8";
|
|
|
|
|
2018-05-01 12:53:11 +02:00
|
|
|
disabled = !isPy3k;
|
|
|
|
|
2018-04-19 17:47:32 +02:00
|
|
|
meta = with lib; {
|
|
|
|
description = "This library eases the use of the JIRA REST API from Python.";
|
|
|
|
license = licenses.bsd2;
|
2018-06-03 22:11:29 +02:00
|
|
|
maintainers = with maintainers; [ globin ma27 ];
|
2018-04-19 17:47:32 +02:00
|
|
|
};
|
|
|
|
}
|