git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #140297 from fabaff/frigidaire
commitfa20572bbada24646fa635ef7f71047dcadfc867 authorSandro <sandro.jaeckel@gmail.com> dateSun 3 Oct 2021, 02:38 (5 years ago) parent29cbec90ceef66
2 files changed+47
pkgs/development/python-modules/frigidaire/default.nix+45 pkgs/top-level/python-packages.nix+2
pkgs/development/python-modules/frigidaire/default.nixnew file+45
@@ -0,0 +1,45 @@
1+{ lib
2+, buildPythonPackage
3+, certifi
4+, chardet
5+, fetchFromGitHub
6+, idna
7+, pythonOlder
8+, requests
9+, urllib3
10+}:
11+
12+buildPythonPackage rec {
13+ pname = "frigidaire";
14+ version = "0.16";
15+ format = "setuptools";
16+
17+ disabled = pythonOlder "3.8";
18+
19+ src = fetchFromGitHub {
20+ owner = "bm1549";
21+ repo = pname;
22+ rev = version;
23+ sha256 = "1yzwzvlxz28rhnwhwsn37v7l7fxikzr4j7m293db9452w340p0zl";
24+ };
25+
26+ propagatedBuildInputs = [
27+ certifi
28+ chardet
29+ idna
30+ requests
31+ urllib3
32+ ];
33+
34+ # Project has no tests
35+ doCheck = false;
36+
37+ pythonImportsCheck = [ "frigidaire" ];
38+
39+ meta = with lib; {
40+ description = "Python API for the Frigidaire devices";
41+ homepage = "https://github.com/bm1549/frigidaire";
42+ license = with licenses; [ mit ];
43+ maintainers = with maintainers; [ fab ];
44+ };
45+}
pkgs/top-level/python-packages.nix+2
@@ -2823,6 +2823,8 @@ in {
28232823
28242824 freezegun = callPackage ../development/python-modules/freezegun { };
28252825
2826+ frigidaire = callPackage ../development/python-modules/frigidaire { };
2827+
28262828 frilouz = callPackage ../development/python-modules/frilouz { };
28272829
28282830 fritzconnection = callPackage ../development/python-modules/fritzconnection { };