about summary refs log tree commit diff
path: root/pkgs/development/python-modules/bond-api
diff options
context:
space:
mode:
authorRobert Schütz <dev@schuetz-co.de>2021-06-15 23:55:11 +0200
committerJonathan Ringer <jonringer@users.noreply.github.com>2021-06-15 18:13:00 -0700
commitef689d5c0fde124e8641c330cbafb559a8335dd9 (patch)
treece437c3818055f51afd45997c8cd151c28c57dc8 /pkgs/development/python-modules/bond-api
parentfda3bb6c2134113e43183c365401b82968d657da (diff)
python3Packages.bond-api: init at 0.1.12
Diffstat (limited to 'pkgs/development/python-modules/bond-api')
-rw-r--r--pkgs/development/python-modules/bond-api/default.nix39
1 files changed, 39 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/bond-api/default.nix b/pkgs/development/python-modules/bond-api/default.nix
new file mode 100644
index 0000000000000..39a6cc443334c
--- /dev/null
+++ b/pkgs/development/python-modules/bond-api/default.nix
@@ -0,0 +1,39 @@
+{ lib
+, buildPythonPackage
+, fetchFromGitHub
+, aiohttp
+, aioresponses
+, pytest-asyncio
+, pytestCheckHook
+}:
+
+buildPythonPackage rec {
+  pname = "bond-api";
+  version = "0.1.12";
+
+  src = fetchFromGitHub {
+    owner = "prystupa";
+    repo = "bond-api";
+    rev = "v${version}";
+    sha256 = "0zqaqqadr4x4vmq28nfk5x67gfwqqfy19z0cgrpxlbbvxamccym0";
+  };
+
+  propagatedBuildInputs = [
+    aiohttp
+  ];
+
+  checkInputs = [
+    aioresponses
+    pytest-asyncio
+    pytestCheckHook
+  ];
+
+  pythonImportsCheck = [ "bond_api" ];
+
+  meta = with lib; {
+    description = "Asynchronous Python wrapper library over Bond Local API";
+    homepage = "https://github.com/prystupa/bond-api";
+    license = licenses.mit;
+    maintainers = with maintainers; [ dotlambda ];
+  };
+}