From 0ceef669f7b2f2b9180c8bee949a198f50f9140d Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 2 Oct 2021 18:11:21 +0200 Subject: [PATCH] python3Packages.frigidaire: init at 0.16 --- .../python-modules/frigidaire/default.nix | 45 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 47 insertions(+) create mode 100644 pkgs/development/python-modules/frigidaire/default.nix diff --git a/pkgs/development/python-modules/frigidaire/default.nix b/pkgs/development/python-modules/frigidaire/default.nix new file mode 100644 index 00000000000..7ec27a12db2 --- /dev/null +++ b/pkgs/development/python-modules/frigidaire/default.nix @@ -0,0 +1,45 @@ +{ lib +, buildPythonPackage +, certifi +, chardet +, fetchFromGitHub +, idna +, pythonOlder +, requests +, urllib3 +}: + +buildPythonPackage rec { + pname = "frigidaire"; + version = "0.16"; + format = "setuptools"; + + disabled = pythonOlder "3.8"; + + src = fetchFromGitHub { + owner = "bm1549"; + repo = pname; + rev = version; + sha256 = "1yzwzvlxz28rhnwhwsn37v7l7fxikzr4j7m293db9452w340p0zl"; + }; + + propagatedBuildInputs = [ + certifi + chardet + idna + requests + urllib3 + ]; + + # Project has no tests + doCheck = false; + + pythonImportsCheck = [ "frigidaire" ]; + + meta = with lib; { + description = "Python API for the Frigidaire devices"; + homepage = "https://github.com/bm1549/frigidaire"; + 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 648a94ff421..852cad4f5da 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2821,6 +2821,8 @@ in { freezegun = callPackage ../development/python-modules/freezegun { }; + frigidaire = callPackage ../development/python-modules/frigidaire { }; + frilouz = callPackage ../development/python-modules/frilouz { }; fritzconnection = callPackage ../development/python-modules/fritzconnection { };