2021-04-26 19:14:03 +00:00
|
|
|
{
|
|
|
|
lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, jinja2
|
|
|
|
, kubernetes
|
|
|
|
, ruamel-yaml
|
|
|
|
, six
|
|
|
|
, python-string-utils
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "openshift";
|
2021-09-18 10:52:07 +00:00
|
|
|
version = "0.12.1";
|
2021-04-26 19:14:03 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-09-18 10:52:07 +00:00
|
|
|
sha256 = "a38957684b17ad0e140a87226249bf26de7267db0c83a6d512b48be258052e1a";
|
2021-04-26 19:14:03 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
jinja2
|
|
|
|
kubernetes
|
|
|
|
python-string-utils
|
|
|
|
ruamel-yaml
|
|
|
|
six
|
|
|
|
];
|
|
|
|
|
|
|
|
# tries to connect to the network
|
|
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = ["openshift"];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python client for the OpenShift API";
|
|
|
|
homepage = "https://github.com/openshift/openshift-restclient-python";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ teto ];
|
|
|
|
};
|
|
|
|
}
|