about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2024-02-14 09:41:46 +0100
committerFabian Affolter <mail@fabian-affolter.ch>2024-02-14 09:41:46 +0100
commite4ae4e18a8abad505de699127675a38cad52f6a2 (patch)
tree400419a6aa8781ed39b838e31e22ba0d5971eb08
parentb141f3467b7c2a0aa04686bfd039031c01e7652c (diff)
downloadnixlib-e4ae4e18a8abad505de699127675a38cad52f6a2.tar
nixlib-e4ae4e18a8abad505de699127675a38cad52f6a2.tar.gz
nixlib-e4ae4e18a8abad505de699127675a38cad52f6a2.tar.bz2
nixlib-e4ae4e18a8abad505de699127675a38cad52f6a2.tar.lz
nixlib-e4ae4e18a8abad505de699127675a38cad52f6a2.tar.xz
nixlib-e4ae4e18a8abad505de699127675a38cad52f6a2.tar.zst
nixlib-e4ae4e18a8abad505de699127675a38cad52f6a2.zip
python311Packages.python-technove: init at 1.2.2
Python library to interact with TechnoVE local device API

https://github.com/Moustachauve/pytechnove
-rw-r--r--pkgs/development/python-modules/python-technove/default.nix64
-rw-r--r--pkgs/top-level/python-packages.nix2
2 files changed, 66 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/python-technove/default.nix b/pkgs/development/python-modules/python-technove/default.nix
new file mode 100644
index 000000000000..795ddf5b1236
--- /dev/null
+++ b/pkgs/development/python-modules/python-technove/default.nix
@@ -0,0 +1,64 @@
+{ lib
+, aiohttp
+, aresponses
+, awesomeversion
+, backoff
+, buildPythonPackage
+, cachetools
+, fetchFromGitHub
+, poetry-core
+, pytest-asyncio
+, pytestCheckHook
+, pythonOlder
+, yarl
+}:
+
+buildPythonPackage rec {
+  pname = "python-technove";
+  version = "1.2.2";
+  pyproject = true;
+
+  disabled = pythonOlder "3.11";
+
+  src = fetchFromGitHub {
+    owner = "Moustachauve";
+    repo = "pytechnove";
+    rev = "refs/tags/v${version}";
+    hash = "sha256-kc5jR0IM2OagvmtqhicnBbrwrdk3E/iJhRIgUtKoirI=";
+  };
+
+  postPatch = ''
+    substituteInPlace pyproject.toml \
+      --replace-fail "--cov" ""
+  '';
+
+  nativeBuildInputs = [
+    poetry-core
+  ];
+
+  propagatedBuildInputs = [
+    aiohttp
+    awesomeversion
+    backoff
+    cachetools
+    yarl
+  ];
+
+  nativeCheckInputs = [
+    aresponses
+    pytest-asyncio
+    pytestCheckHook
+  ];
+
+  pythonImportsCheck = [
+    "technove"
+  ];
+
+  meta = with lib; {
+    description = "Python library to interact with TechnoVE local device API";
+    homepage = "https://github.com/Moustachauve/pytechnove";
+    changelog = "https://github.com/Moustachauve/pytechnove/releases/tag/v${version}";
+    license = licenses.mit;
+    maintainers = with maintainers; [ fab ];
+  };
+}
diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix
index f16bf7acf9dd..825abd3d6656 100644
--- a/pkgs/top-level/python-packages.nix
+++ b/pkgs/top-level/python-packages.nix
@@ -12000,6 +12000,8 @@ self: super: with self; {
 
   python-stdnum = callPackage ../development/python-modules/python-stdnum { };
 
+  python-technove = callPackage ../development/python-modules/python-technove { };
+
   python-telegram = callPackage ../development/python-modules/python-telegram { };
 
   python-telegram-bot = callPackage ../development/python-modules/python-telegram-bot { };