1{
2 lib,
3 buildPythonPackage,
4 cryptography,
5 fetchPypi,
6 pythonOlder,
7 poetry-core,
8 setuptools,
9}:
10
11buildPythonPackage rec {
12 pname = "lc7001";
13 version = "1.0.5";
14 format = "pyproject";
15
16 disabled = pythonOlder "3.8";
17
18 src = fetchPypi {
19 inherit pname version;
20 hash = "sha256-I4I3vwW1kJsgLFPMGpe9hkD3iEeC3AqI4pCi6SCWPx4=";
21 };
22
23 nativeBuildInputs = [
24 poetry-core
25 setuptools
26 ];
27
28 propagatedBuildInputs = [ cryptography ];
29
30 # Project has no tests
31 doCheck = false;
32
33 pythonImportsCheck = [ "lc7001" ];
34
35 meta = with lib; {
36 description = "Python module for interacting with Legrand LC7001";
37 homepage = "https://github.com/rtyle/lc7001";
38 license = licenses.mit;
39 maintainers = with maintainers; [ fab ];
40 };
41}