git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #119960 from teto/openshift

python3Packages.openshift: init at 0.12.0

commit6e9671b6cb2341af2b3db9c8461aaf066239f7dc authorLuke Granger-Brown <git@lukegb.com> dateSun 25 Apr 2021, 14:13 (6 years ago) parented83f64b02d4a3
3 files changed+70
pkgs/development/python-modules/openshift/default.nix+39 pkgs/development/python-modules/python-string-utils/default.nix+27 pkgs/top-level/python-packages.nix+4
pkgs/development/python-modules/openshift/default.nixnew file+39
@@ -0,0 +1,39 @@
1+{
2+ lib
3+ , buildPythonPackage
4+ , fetchPypi
5+ , jinja2
6+ , kubernetes
7+ , ruamel-yaml
8+ , six
9+ , python-string-utils
10+}:
11+
12+buildPythonPackage rec {
13+ pname = "openshift";
14+ version = "0.12.0";
15+
16+ src = fetchPypi {
17+ inherit pname version;
18+ sha256 = "sha256-aggRnD4goiZJPp4cngp8AIrJC/V46378cwUSfq8Xml4=";
19+ };
20+
21+ propagatedBuildInputs = [
22+ jinja2
23+ kubernetes
24+ python-string-utils
25+ ruamel-yaml
26+ six
27+ ];
28+
29+ # tries to connect to the network
30+ doCheck = false;
31+ pythonImportsCheck = ["openshift"];
32+
33+ meta = with lib; {
34+ description = "Python client for the OpenShift API";
35+ homepage = "https://github.com/openshift/openshift-restclient-python";
36+ license = licenses.asl20;
37+ maintainers = with maintainers; [ teto ];
38+ };
39+}
pkgs/development/python-modules/python-string-utils/default.nixnew file+27
@@ -0,0 +1,27 @@
1+{ lib
2+, buildPythonPackage
3+, fetchPypi
4+, pytest
5+}:
6+
7+buildPythonPackage rec {
8+ pname = "python-string-utils";
9+ version = "1.0.0";
10+
11+ src = fetchPypi {
12+ inherit pname version;
13+ sha256 = "sha256-3PkGCwPwdkfApgNAjciwP4B/O1SgXG4Z6xRGAlb6wMs=";
14+ };
15+
16+ pythonImportsCheck = ["string_utils"];
17+
18+ # tests are not available in pypi tarball
19+ doCheck = false;
20+
21+ meta = with lib; {
22+ description = "A handy Python library to validate, manipulate and generate strings.";
23+ homepage = "https://github.com/daveoncode/python-string-utils";
24+ license = licenses.mit;
25+ maintainers = with maintainers; [ teto ];
26+ };
27+}
pkgs/top-level/python-packages.nix+4
@@ -4624,6 +4624,8 @@ in {
46244624
46254625 opensensemap-api = callPackage ../development/python-modules/opensensemap-api { };
46264626
4627+ openshift = callPackage ../development/python-modules/openshift { };
4628+
46274629 opentimestamps = callPackage ../development/python-modules/opentimestamps { };
46284630
46294631 opentracing = callPackage ../development/python-modules/opentracing { };
@@ -6359,6 +6361,8 @@ in {
63596361
63606362 pytest-shutil = callPackage ../development/python-modules/pytest-shutil { };
63616363
6364+ python-string-utils = callPackage ../development/python-modules/python-string-utils { };
6365+
63626366 pytest-socket = callPackage ../development/python-modules/pytest-socket { };
63636367
63646368 pytest-subtesthack = callPackage ../development/python-modules/pytest-subtesthack { };