2021-10-02 17:11:21 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, certifi
|
|
|
|
, chardet
|
|
|
|
, fetchFromGitHub
|
|
|
|
, idna
|
|
|
|
, pythonOlder
|
|
|
|
, requests
|
|
|
|
, urllib3
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "frigidaire";
|
2021-12-03 16:51:19 +00:00
|
|
|
version = "0.18.4";
|
2021-10-02 17:11:21 +01:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bm1549";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-12-03 16:51:19 +00:00
|
|
|
sha256 = "sha256-U2ixBtigY15RzMNIeUK71uNOndUepK2kE/CTFwl855w=";
|
2021-10-02 17:11:21 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
certifi
|
|
|
|
chardet
|
|
|
|
idna
|
|
|
|
requests
|
|
|
|
urllib3
|
|
|
|
];
|
|
|
|
|
|
|
|
# Project has no tests
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-11-15 09:04:33 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"frigidaire"
|
|
|
|
];
|
2021-10-02 17:11:21 +01:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python API for the Frigidaire devices";
|
|
|
|
homepage = "https://github.com/bm1549/frigidaire";
|
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|