From ae51dd5b70cab6200c85e540476a1f64b1945744 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 16 Apr 2022 21:33:01 +0200 Subject: [PATCH] python3Packages.python-family-hub-local: init at 0.0.2 --- .../python-family-hub-local/default.nix | 43 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 45 insertions(+) create mode 100644 pkgs/development/python-modules/python-family-hub-local/default.nix diff --git a/pkgs/development/python-modules/python-family-hub-local/default.nix b/pkgs/development/python-modules/python-family-hub-local/default.nix new file mode 100644 index 000000000000..01d9da8423dd --- /dev/null +++ b/pkgs/development/python-modules/python-family-hub-local/default.nix @@ -0,0 +1,43 @@ +{ lib +, buildPythonPackage +, aiohttp +, async-timeout +, pillow +, fetchPypi +, pytestCheckHook +, pythonOlder +}: + +buildPythonPackage rec { + pname = "python-family-hub-local"; + version = "0.0.2"; + format = "setuptools"; + + disabled = pythonOlder "3.9"; + + src = fetchPypi { + inherit pname version; + extension = "zip"; + hash = "sha256-bbOBlUJ4g+HOcJihEBAz3lsHR9Gn07z8st14FRFeJbc="; + }; + + propagatedBuildInputs = [ + aiohttp + async-timeout + pillow + ]; + + # Module has no tests + doCheck = false; + + pythonImportsCheck = [ + "pyfamilyhublocal" + ]; + + meta = with lib; { + description = "Module to accesse information from Samsung FamilyHub fridges locally"; + homepage = "https://github.com/Klathmon/python-family-hub-local"; + license = licenses.asl20; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 92039ecefa8b..25d143b0d21d 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -8138,6 +8138,8 @@ in { python-editor = callPackage ../development/python-modules/python-editor { }; + python-family-hub-local = callPackage ../development/python-modules/python-family-hub-local { }; + python-fsutil = callPackage ../development/python-modules/python-fsutil { }; pythonefl = callPackage ../development/python-modules/python-efl { };