diff --git a/pkgs/development/python-modules/temperusb/default.nix b/pkgs/development/python-modules/temperusb/default.nix new file mode 100644 index 000000000000..929560167e76 --- /dev/null +++ b/pkgs/development/python-modules/temperusb/default.nix @@ -0,0 +1,37 @@ +{ lib +, buildPythonPackage +, fetchPypi +, pythonOlder +, pyusb +}: + +buildPythonPackage rec { + pname = "temperusb"; + version = "1.6.0"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; + + src = fetchPypi { + inherit pname version; + hash = "sha256-enYhqtJnORKhBoZkZPISLCt9Ec5SN6txD3z0SXuPrQo="; + }; + + propagatedBuildInputs = [ + pyusb + ]; + + # Module has no tests which are shipped and source is not tagged + doCheck = false; + + pythonImportsCheck = [ + "temperusb" + ]; + + meta = with lib; { + description = "Library to read TEMPer USB HID devices"; + homepage = "https://github.com/padelt/temper-python"; + license = licenses.gpl3Only; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/servers/home-assistant/component-packages.nix b/pkgs/servers/home-assistant/component-packages.nix index 569d8d70473a..46371245936c 100644 --- a/pkgs/servers/home-assistant/component-packages.nix +++ b/pkgs/servers/home-assistant/component-packages.nix @@ -2876,7 +2876,8 @@ "telnet" = ps: with ps; [ ]; "temper" = ps: with ps; [ - ]; # missing inputs: temperusb + temperusb + ]; "template" = ps: with ps; [ ]; "tensorflow" = ps: with ps; [ diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 92ee65e06e0d..5bec3defe202 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -10790,6 +10790,8 @@ in { temescal = callPackage ../development/python-modules/temescal { }; + temperusb = callPackage ../development/python-modules/temperusb { }; + tempest = callPackage ../development/python-modules/tempest { }; tempita = callPackage ../development/python-modules/tempita { };