about summary refs log tree commit diff
path: root/pkgs/development/python-modules/pynecil/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/pynecil/default.nix')
-rw-r--r--pkgs/development/python-modules/pynecil/default.nix47
1 files changed, 47 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/pynecil/default.nix b/pkgs/development/python-modules/pynecil/default.nix
new file mode 100644
index 000000000000..70a5a432af1a
--- /dev/null
+++ b/pkgs/development/python-modules/pynecil/default.nix
@@ -0,0 +1,47 @@
+{
+  bleak,
+  buildPythonPackage,
+  fetchFromGitHub,
+  hatch-regex-commit,
+  hatchling,
+  lib,
+  pytest-asyncio,
+  pytest-cov-stub,
+  pytestCheckHook,
+}:
+
+buildPythonPackage rec {
+  pname = "pynecil";
+  version = "0.2.1";
+  pyproject = true;
+
+  src = fetchFromGitHub {
+    owner = "tr4nt0r";
+    repo = "pynecil";
+    rev = "refs/tags/v${version}";
+    hash = "sha256-ZltGA3O6DDOiOddKHMalqmOYrp3IbhAGN7wGfPBP2aA=";
+  };
+
+  build-system = [
+    hatch-regex-commit
+    hatchling
+  ];
+
+  dependencies = [ bleak ];
+
+  pythonImportsCheck = [ "pynecil" ];
+
+  nativeCheckInputs = [
+    pytest-asyncio
+    pytest-cov-stub
+    pytestCheckHook
+  ];
+
+  meta = {
+    changelog = "https://github.com/tr4nt0r/pynecil/releases/tag/v${version}";
+    description = "Python library to communicate with Pinecil V2 soldering irons via Bluetooth";
+    homepage = "https://github.com/tr4nt0r/pynecil";
+    license = lib.licenses.mit;
+    maintainers = with lib.maintainers; [ dotlambda ];
+  };
+}