about summary refs log tree commit diff
path: root/pkgs/development/python-modules/python-heatclient
diff options
context:
space:
mode:
authorsuperherointj <5861043+superherointj@users.noreply.github.com>2021-09-14 15:12:42 -0300
committersuperherointj <5861043+superherointj@users.noreply.github.com>2021-09-18 14:22:06 -0300
commitc3c981d590f2abef5736937f0aa5aa3c7d568fa3 (patch)
treedd35ca692a7064ce511c0410e0a1b93cb83a87a6 /pkgs/development/python-modules/python-heatclient
parent0379ff190e3ac1419f47153a2d1127ca620a2912 (diff)
pythonPackages.python-heatclient: init 2.4.0
Diffstat (limited to 'pkgs/development/python-modules/python-heatclient')
-rw-r--r--pkgs/development/python-modules/python-heatclient/default.nix69
1 files changed, 69 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/python-heatclient/default.nix b/pkgs/development/python-modules/python-heatclient/default.nix
new file mode 100644
index 0000000000000..cab28ef016d91
--- /dev/null
+++ b/pkgs/development/python-modules/python-heatclient/default.nix
@@ -0,0 +1,69 @@
+{ lib
+, buildPythonApplication
+, fetchPypi
+, pbr
+, Babel
+, cliff
+, iso8601
+, osc-lib
+, prettytable
+, oslo-i18n
+, oslo-serialization
+, oslo-utils
+, keystoneauth1
+, python-swiftclient
+, pyyaml
+, requests
+, six
+, stestr
+, testscenarios
+, requests-mock
+}:
+
+buildPythonApplication rec {
+  pname = "python-heatclient";
+  version = "2.4.0";
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "b53529eb73f08c384181a580efaa42293cc35e0e1ecc4b0bc14a5c7b202019bb";
+  };
+
+  propagatedBuildInputs = [
+    pbr
+    Babel
+    cliff
+    iso8601
+    osc-lib
+    prettytable
+    oslo-i18n
+    oslo-serialization
+    oslo-utils
+    keystoneauth1
+    python-swiftclient
+    pyyaml
+    requests
+    six
+  ];
+
+  checkInputs = [
+    stestr
+    testscenarios
+    requests-mock
+  ];
+
+  checkPhase = ''
+    stestr run -e <(echo "
+      heatclient.tests.unit.test_common_http.HttpClientTest.test_get_system_ca_file
+    ")
+  '';
+
+  pythonImportsCheck = [ "heatclient" ];
+
+  meta = with lib; {
+    description = "A client library for Heat built on the Heat orchestration API";
+    homepage = "https://github.com/openstack/python-heatclient";
+    license = licenses.asl20;
+    maintainers = teams.openstack.members;
+  };
+}