From 600bec87813ed7cd0149799f2dd50c4f4eadd911 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 11 Dec 2022 11:57:43 +0100 Subject: [PATCH] python310Packages.aranet4: init at 2.1.2 --- .../python-modules/aranet4/default.nix | 40 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 42 insertions(+) create mode 100644 pkgs/development/python-modules/aranet4/default.nix diff --git a/pkgs/development/python-modules/aranet4/default.nix b/pkgs/development/python-modules/aranet4/default.nix new file mode 100644 index 000000000000..c9cce5ff61a8 --- /dev/null +++ b/pkgs/development/python-modules/aranet4/default.nix @@ -0,0 +1,40 @@ +{ lib +, bleak +, buildPythonPackage +, fetchPypi +, pytestCheckHook +, pythonOlder +, requests +}: + +buildPythonPackage rec { + pname = "aranet4"; + version = "2.1.2"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; + + src = fetchPypi { + inherit pname version; + hash = "sha256-nuxj/rNuwAy1DXaJs0Qrl9GffiZqFkWxT/0TYRxg92s="; + }; + + propagatedBuildInputs = [ + bleak + requests + ]; + + # https://github.com/Anrijs/Aranet4-Python/issues/31 + doCheck = false; + + pythonImportsCheck = [ + "aranet4" + ]; + + meta = with lib; { + description = "Module to interact with Aranet4 devices"; + homepage = "https://github.com/Anrijs/Aranet4-Python"; + license = with licenses; [ mit ]; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index de076425e89b..83d9708eb2de 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -546,6 +546,8 @@ self: super: with self; { arabic-reshaper = callPackage ../development/python-modules/arabic-reshaper { }; + aranet4 = callPackage ../development/python-modules/aranet4 { }; + arc4 = callPackage ../development/python-modules/arc4 { }; arcam-fmj = callPackage ../development/python-modules/arcam-fmj { };