@@ -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+}