tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
python310Packages.pysnooz: init at 0.8.3
Fabian Affolter
3 years ago
cd314ad2
04abe7d8
+70
2 changed files
expand all
collapse all
unified
split
pkgs
development
python-modules
pysnooz
default.nix
top-level
python-packages.nix
+68
pkgs/development/python-modules/pysnooz/default.nix
···
1
1
+
{ lib
2
2
+
, bleak
3
3
+
, bleak-retry-connector
4
4
+
, bluetooth-sensor-state-data
5
5
+
, buildPythonPackage
6
6
+
, events
7
7
+
, fetchFromGitHub
8
8
+
, freezegun
9
9
+
, home-assistant-bluetooth
10
10
+
, poetry-core
11
11
+
, pytest-asyncio
12
12
+
, pytest-mock
13
13
+
, pytestCheckHook
14
14
+
, pythonOlder
15
15
+
, transitions
16
16
+
}:
17
17
+
18
18
+
buildPythonPackage rec {
19
19
+
pname = "pysnooz";
20
20
+
version = "0.8.3";
21
21
+
format = "pyproject";
22
22
+
23
23
+
disabled = pythonOlder "3.9";
24
24
+
25
25
+
src = fetchFromGitHub {
26
26
+
owner = "AustinBrunkhorst";
27
27
+
repo = pname;
28
28
+
rev = "v${version}";
29
29
+
hash = "sha256-K99sE9vxJo6grkp04DmTKOVqdfpQI0kUzJjSR6gnSew=";
30
30
+
};
31
31
+
32
32
+
postPatch = ''
33
33
+
substituteInPlace pyproject.toml \
34
34
+
--replace 'transitions = "^0.8.11"' 'transitions = ">0.8.11"' \
35
35
+
--replace " --cov=pysnooz --cov-report=term-missing:skip-covered" ""
36
36
+
'';
37
37
+
38
38
+
nativeBuildInputs = [
39
39
+
poetry-core
40
40
+
];
41
41
+
42
42
+
propagatedBuildInputs = [
43
43
+
bleak
44
44
+
bleak-retry-connector
45
45
+
bluetooth-sensor-state-data
46
46
+
events
47
47
+
home-assistant-bluetooth
48
48
+
transitions
49
49
+
];
50
50
+
51
51
+
checkInputs = [
52
52
+
freezegun
53
53
+
pytest-asyncio
54
54
+
pytest-mock
55
55
+
pytestCheckHook
56
56
+
];
57
57
+
58
58
+
pythonImportsCheck = [
59
59
+
"pysnooz"
60
60
+
];
61
61
+
62
62
+
meta = with lib; {
63
63
+
description = "Library to control SNOOZ white noise machines";
64
64
+
homepage = "https://github.com/AustinBrunkhorst/pysnooz";
65
65
+
license = with licenses; [ mit ];
66
66
+
maintainers = with maintainers; [ fab ];
67
67
+
};
68
68
+
}
+2
pkgs/top-level/python-packages.nix
···
8570
8570
8571
8571
pysnooper = callPackage ../development/python-modules/pysnooper { };
8572
8572
8573
8573
+
pysnooz = callPackage ../development/python-modules/pysnooz { };
8574
8574
+
8573
8575
pysnow = callPackage ../development/python-modules/pysnow { };
8574
8576
8575
8577
pysocks = callPackage ../development/python-modules/pysocks { };