about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/pypca/default.nix
blob: 28e958e4b62601aeb5391c02f4d1a9cf9618b40b (plain) (blame)
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
{ lib
, buildPythonPackage
, colorlog
, fetchPypi
, pythonOlder
, pyserial
}:

buildPythonPackage rec {
  pname = "pypca";
  version = "0.0.13";
  format = "setuptools";
  disabled = pythonOlder "3.5";

  src = fetchPypi {
    inherit pname version;
    sha256 = "0y0p2rm22x21mykipiv42fjc79b0969qsbhk3cqkrdnqwh5psbdl";
  };

  propagatedBuildInputs = [
    colorlog
    pyserial
  ];

  # Project has no tests
  doCheck = false;

  pythonImportsCheck = [ "pypca" ];

  meta = with lib; {
    description = "Python library for interacting with the PCA 301 smart plugs";
    homepage = "https://github.com/majuss/pypca";
    license = with licenses; [ mit ];
    maintainers = with maintainers; [ fab ];
  };
}