1{ lib
2, buildPythonPackage
3, fetchPypi
4, pythonOlder
5, requests
6, requests-oauthlib
7, voluptuous
8}:
9
10buildPythonPackage rec {
11 pname = "pybotvac";
12 version = "0.0.24";
13 format = "setuptools";
14
15 disabled = pythonOlder "3.7";
16
17 src = fetchPypi {
18 inherit pname version;
19 hash = "sha256-SXIs9AUXWm1H49MVDT4z6msNPaW5sAU20rcsWZ7ERdU=";
20 };
21
22 patches = [
23 ./urllib3-2.0-compat.patch
24 ];
25
26 propagatedBuildInputs = [
27 requests
28 requests-oauthlib
29 voluptuous
30 ];
31
32 # Module no tests
33 doCheck = false;
34
35 pythonImportsCheck = [
36 "pybotvac"
37 ];
38
39 meta = with lib; {
40 description = "Python module for interacting with Neato Botvac Connected vacuum robots";
41 homepage = "https://github.com/stianaske/pybotvac";
42 changelog = "https://github.com/stianaske/pybotvac/releases/tag/v${version}";
43 license = licenses.mit;
44 maintainers = with maintainers; [ fab ];
45 };
46}