summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/lc7001/default.nix
blob: f847137353c010971aff067515bdc10d6b41453b (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
{
  lib,
  buildPythonPackage,
  cryptography,
  fetchPypi,
  poetry-core,
  setuptools,
}:

buildPythonPackage rec {
  pname = "lc7001";
  version = "1.0.5";
  pyproject = true;

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-I4I3vwW1kJsgLFPMGpe9hkD3iEeC3AqI4pCi6SCWPx4=";
  };

  nativeBuildInputs = [
    poetry-core
    setuptools
  ];

  propagatedBuildInputs = [ cryptography ];

  # Project has no tests
  doCheck = false;

  pythonImportsCheck = [ "lc7001" ];

  meta = {
    description = "Python module for interacting with Legrand LC7001";
    homepage = "https://github.com/rtyle/lc7001";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ fab ];
  };
}