about summary refs log tree commit diff
path: root/pkgs/development
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2023-12-07 13:22:17 +0100
committerMartin Weinelt <mweinelt@users.noreply.github.com>2023-12-07 14:36:17 +0100
commitf802b8eeda4f05c6ed0793c4fcb022aecd2c6f97 (patch)
tree963fdcdb786120f910b48c88573f6a281ec2fa08 /pkgs/development
parent8ca90ac70f07d1d43a505fdcb8ee4337cfc3d6fe (diff)
python311Packages.devialet: init at 1.4.3
Library to interact with Devialet API

https://github.com/fwestenberg/devialet
Diffstat (limited to 'pkgs/development')
-rw-r--r--pkgs/development/python-modules/devialet/default.nix45
1 files changed, 45 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/devialet/default.nix b/pkgs/development/python-modules/devialet/default.nix
new file mode 100644
index 0000000000000..086f27e421443
--- /dev/null
+++ b/pkgs/development/python-modules/devialet/default.nix
@@ -0,0 +1,45 @@
+{ lib
+, aiohttp
+, buildPythonPackage
+, fetchFromGitHub
+, pythonOlder
+, setuptools
+}:
+
+buildPythonPackage rec {
+  pname = "devialet";
+  version = "1.4.3";
+  pyproject = true;
+
+  disabled = pythonOlder "3.7";
+
+  src = fetchFromGitHub {
+    owner = "fwestenberg";
+    repo = "devialet";
+    rev = "refs/tags/v${version}";
+    hash = "sha256-DVwf1zQXwPe8W2SzL9CnYE+gwLgPEnI+tQTfR+ijwF4=";
+  };
+
+  nativeBuildInputs = [
+    setuptools
+  ];
+
+  propagatedBuildInputs = [
+    aiohttp
+  ];
+
+  # Module has no tests
+  doCheck = false;
+
+  pythonImportsCheck = [
+    "devialet"
+  ];
+
+  meta = with lib; {
+    description = "Library to interact with the Devialet API";
+    homepage = "https://github.com/fwestenberg/devialet";
+    changelog = "https://github.com/fwestenberg/devialet/releases/tag/v${version}";
+    license = licenses.mit;
+    maintainers = with maintainers; [ fab ];
+  };
+}