1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 jinja2,
6 kubernetes,
7 ruamel-yaml,
8 six,
9 python-string-utils,
10 pytest-bdd,
11 pytest-cov-stub,
12 pytestCheckHook,
13}:
14
15buildPythonPackage rec {
16 pname = "openshift";
17 version = "0.13.2";
18 format = "setuptools";
19
20 src = fetchFromGitHub {
21 owner = "openshift";
22 repo = "openshift-restclient-python";
23 tag = "v${version}";
24 hash = "sha256-uLfewj7M8KNs3oL1AM18sR/WhAR2mvBfqadyhR73FP0=";
25 };
26
27 pythonRelaxDeps = [ "kubernetes" ];
28
29 propagatedBuildInputs = [
30 jinja2
31 kubernetes
32 python-string-utils
33 ruamel-yaml
34 six
35 ];
36
37 pythonImportsCheck = [ "openshift" ];
38
39 nativeCheckInputs = [
40 pytest-bdd
41 pytest-cov-stub
42 pytestCheckHook
43 ];
44
45 disabledTestPaths = [
46 # requires kubeconfig
47 "test/integration"
48 ];
49
50 meta = with lib; {
51 description = "Python client for the OpenShift API";
52 homepage = "https://github.com/openshift/openshift-restclient-python";
53 license = licenses.asl20;
54 maintainers = with maintainers; [ teto ];
55 };
56}