From cdc038410982b26c6519ef445c9f30812223eb59 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 12 Jun 2022 16:59:42 +0200 Subject: [PATCH] python310Packages.ultraheat-api: init at 0.4.0 --- .../python-modules/ultraheat-api/default.nix | 38 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 40 insertions(+) create mode 100644 pkgs/development/python-modules/ultraheat-api/default.nix diff --git a/pkgs/development/python-modules/ultraheat-api/default.nix b/pkgs/development/python-modules/ultraheat-api/default.nix new file mode 100644 index 000000000000..1d359d748b34 --- /dev/null +++ b/pkgs/development/python-modules/ultraheat-api/default.nix @@ -0,0 +1,38 @@ +{ lib +, buildPythonPackage +, fetchPypi +, pyserial +, pythonOlder +}: + +buildPythonPackage rec { + pname = "ultraheat-api"; + version = "0.4.0"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; + + src = fetchPypi { + pname = "ultraheat_api"; + inherit version; + hash = "sha256-J0mQolWdXatIG/ORTBNyo6HrAfydvYqXK7LxInQWcX0="; + }; + + propagatedBuildInputs = [ + pyserial + ]; + + # Source is not tagged, only PyPI releases + doCheck = false; + + pythonImportsCheck = [ + "ultraheat_api" + ]; + + meta = with lib; { + description = "Module for working with data from Landis+Gyr Ultraheat heat meter unit"; + homepage = "https://github.com/vpathuis/uh50"; + license = licenses.mit; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 6fd6fcae0409..4f4f5eb9c358 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -10790,6 +10790,8 @@ in { ukrainealarm = callPackage ../development/python-modules/ukrainealarm { }; + ultraheat-api = callPackage ../development/python-modules/ultraheat-api { }; + umalqurra = callPackage ../development/python-modules/umalqurra { }; umap-learn = callPackage ../development/python-modules/umap-learn { };