1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 requests,
6 inflect,
7 setuptools,
8}:
9
10buildPythonPackage rec {
11 pname = "decora-wifi";
12 version = "1.5";
13 pyproject = true;
14
15 #No tag in github, so fetchPypi is OK to use.
16 src = fetchPypi {
17 pname = "decora_wifi";
18 inherit version;
19 hash = "sha256-oWETtzZueNJC0lTWdLfk3SOuvnqrJ9wp5rOSPJxH3M4=";
20 };
21
22 build-system = [ setuptools ];
23
24 dependencies = [
25 requests
26 inflect
27 ];
28
29 pythonImportsCheck = [ "decora_wifi" ];
30
31 # No tests in Pypi source
32 doCheck = false;
33
34 meta = {
35 description = "Python library for controlling Leviton Decora Smart Wi-Fi devices";
36 homepage = "https://github.com/tlyakhov/python-decora_wifi";
37 changelog = "https://github.com/tlyakhov/python-decora_wifi/releases/tag/${version}";
38 license = lib.licenses.mit;
39 maintainers = with lib.maintainers; [ Continous ];
40 };
41}