diff --git a/pkgs/development/python-modules/guntamatic/default.nix b/pkgs/development/python-modules/guntamatic/default.nix new file mode 100644 index 000000000000..5dc316759a20 --- /dev/null +++ b/pkgs/development/python-modules/guntamatic/default.nix @@ -0,0 +1,37 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + requests, + pytestCheckHook, +}: + +buildPythonPackage (finalAttrs: { + pname = "guntamatic"; + version = "1.9.0"; + pyproject = true; + + src = fetchFromGitHub { + owner = "JensTimmerman"; + repo = "guntamatic"; + tag = "v${finalAttrs.version}"; + hash = "sha256-AFqr2+N8uDpeUOvPuFZQbvln1sxWhrJEj31H2DOYX1k="; + }; + + build-system = [ setuptools ]; + + dependencies = [ requests ]; + + nativeCheckInputs = [ pytestCheckHook ]; + + pythonImportsCheck = [ "guntamatic" ]; + + meta = { + description = "Module to get data from a Guntamatic heater e.g. BMK 20"; + homepage = "https://github.com/JensTimmerman/guntamatic"; + changelog = "https://github.com/JensTimmerman/guntamatic/releases/tag/${finalAttrs.src.tag}"; + license = lib.licenses.gpl3Only; + maintainers = [ lib.maintainers.jamiemagee ]; + }; +}) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 99e3fab63d9b..7fd4bd52c4fe 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -6924,6 +6924,8 @@ self: super: with self; { gunicorn = callPackage ../development/python-modules/gunicorn { }; + guntamatic = callPackage ../development/python-modules/guntamatic { }; + guppy3 = callPackage ../development/python-modules/guppy3 { }; gurobipy = callPackage ../development/python-modules/gurobipy { };