blob: e79bcdc4840388f97d950b67c4fdba2cb2b81612 (
about) (
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
|
{
lib,
buildPythonPackage,
fetchPypi,
pythonOlder,
requests,
requests-oauthlib,
voluptuous,
setuptools,
}:
buildPythonPackage rec {
pname = "pybotvac";
version = "0.0.27";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-viMklBbC8KAh6cCuWs5nSbBF0BwVkPXV3Z2ydj08d9c=";
};
postPatch = ''
substituteInPlace pybotvac/robot.py \
--replace-fail "import urllib3" "" \
--replace-fail "urllib3.disable_warnings(urllib3.exceptions.SubjectAltNameWarning)" "# urllib3.disable_warnings(urllib3.exceptions.SubjectAltNameWarning)"
'';
build-system = [ setuptools ];
dependencies = [
requests
requests-oauthlib
voluptuous
];
# Module no tests
doCheck = false;
pythonImportsCheck = [ "pybotvac" ];
meta = with lib; {
description = "Python module for interacting with Neato Botvac Connected vacuum robots";
homepage = "https://github.com/stianaske/pybotvac";
changelog = "https://github.com/stianaske/pybotvac/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}
|