about summary refs log tree commit diff
path: root/pkgs/development/python-modules/openerz-api
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2021-04-22 21:53:09 +0200
committerFabian Affolter <mail@fabian-affolter.ch>2021-04-23 09:12:57 +0200
commit89168356c268a0ce20ab627e5445d59aa1950c3d (patch)
treefa775c518510f1077819a1c0c8a3b17b6668e7be /pkgs/development/python-modules/openerz-api
parentc21475e7e8aeaa38b13af380c64da59690056086 (diff)
python3Packages.openerz-api: init at 0.1.0
Diffstat (limited to 'pkgs/development/python-modules/openerz-api')
-rw-r--r--pkgs/development/python-modules/openerz-api/default.nix39
1 files changed, 39 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/openerz-api/default.nix b/pkgs/development/python-modules/openerz-api/default.nix
new file mode 100644
index 0000000000000..9cbe89e26a341
--- /dev/null
+++ b/pkgs/development/python-modules/openerz-api/default.nix
@@ -0,0 +1,39 @@
+{ lib
+, buildPythonPackage
+, fetchFromGitHub
+, pytestCheckHook
+, pythonOlder
+, requests
+, testfixtures
+}:
+
+buildPythonPackage rec {
+  pname = "openerz-api";
+  version = "0.1.0";
+  disabled = pythonOlder "3.6";
+
+  src = fetchFromGitHub {
+    owner = "misialq";
+    repo = pname;
+    rev = "v${version}";
+    sha256 = "10kxsmaz2rn26jijaxmdmhx8vjdz8hrhlrvd39gc8yvqbjwhi3nw";
+  };
+
+  propagatedBuildInputs = [
+    requests
+  ];
+
+  checkInputs = [
+    pytestCheckHook
+    testfixtures
+  ];
+
+  pythonImportsCheck = [ "openerz_api" ];
+
+  meta = with lib; {
+    description = "Python module to interact with the OpenERZ API";
+    homepage = "https://github.com/misialq/openerz-api";
+    license = with licenses; [ mit ];
+    maintainers = with maintainers; [ fab ];
+  };
+}