41 lines
783 B
Nix
41 lines
783 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, mock
|
|
, pbr
|
|
, pyyaml
|
|
, setuptools
|
|
, six
|
|
, multi_key_dict
|
|
, testscenarios
|
|
, requests
|
|
, unittest2
|
|
, requests-mock
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "python-jenkins";
|
|
version = "1.6.0";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "1aa6rnzlzdgndiwjdbnklgz5pqy5zd7d6g7bhzsvyf0614z1w010";
|
|
};
|
|
|
|
buildInputs = [ mock ];
|
|
propagatedBuildInputs = [ pbr pyyaml setuptools six multi_key_dict requests ];
|
|
|
|
checkInputs = [ unittest2 testscenarios requests-mock ];
|
|
checkPhase = ''
|
|
unit2
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Python bindings for the remote Jenkins API";
|
|
homepage = https://pypi.python.org/pypi/python-jenkins;
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ ma27 ];
|
|
};
|
|
|
|
}
|