blob: 8d610327ca0907a5d6bf7141fa02316b676f9e8a (
plain)
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
|
{
lib,
buildPythonPackage,
colorlog,
fetchFromGitHub,
pytest-sugar,
pytest-timeout,
pytestCheckHook,
pythonAtLeast,
requests,
requests-mock,
setuptools,
}:
buildPythonPackage rec {
pname = "skybellpy";
version = "0.6.3";
pyproject = true;
# Still uses distrutils, https://github.com/MisterWil/skybellpy/issues/22
disabled = pythonAtLeast "3.12";
src = fetchFromGitHub {
owner = "MisterWil";
repo = "skybellpy";
tag = "v${version}";
hash = "sha256-/+9KYxXYTN0T6PoccAA/pwdwWqOzCSZdNxj6xi6oG74=";
};
build-system = [ setuptools ];
dependencies = [
colorlog
requests
];
nativeCheckInputs = [
pytest-sugar
pytest-timeout
pytestCheckHook
requests-mock
];
pythonImportsCheck = [ "skybellpy" ];
meta = {
description = "Python wrapper for the Skybell alarm API";
homepage = "https://github.com/MisterWil/skybellpy";
changelog = "https://github.com/MisterWil/skybellpy/releases/tag/v${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
mainProgram = "skybellpy";
};
}
|