blob: 89140e97a432eb5284c72f9ab1fa0d4185b96ac1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
{
lib,
buildPythonPackage,
certifi,
chardet,
fetchFromGitHub,
idna,
pythonOlder,
requests,
setuptools,
urllib3,
}:
buildPythonPackage rec {
pname = "frigidaire";
version = "0.18.19";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "bm1549";
repo = "frigidaire";
rev = "refs/tags/${version}";
hash = "sha256-wbYijFiMk+EIAjD6+mKt/c6JwN9oQLfeL1Pk30RbKKs=";
};
postPatch = ''
substituteInPlace setup.py \
--replace-warn 'version = "SNAPSHOT"' 'version = "${version}"'
'';
nativeBuildInputs = [ setuptools ];
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";
changelog = "https://github.com/bm1549/frigidaire/releases/tag/${version}";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}
|