about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/liquidctl/default.nix
blob: 888f09dba95b42953c8d5fe8daa1956e09d4bd01 (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
37
{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, docopt
, hidapi
, pyusb
, smbus-cffi
}:

buildPythonPackage rec {
  pname = "liquidctl";
  version = "1.4.2";
  disabled = pythonOlder "3.6";

  src = fetchFromGitHub {
    owner  = pname;
    repo   = pname;
    rev    = "v${version}";
    sha256 = "1h5kqpvlx7xppd2wli986lkslqkcrlz1wixv7fvrppzjc2nfz5d4";
  };

  propagatedBuildInputs = [
    docopt
    hidapi
    pyusb
    smbus-cffi
  ];

  meta = with lib; {
    description = "Cross-platform CLI and Python drivers for AIO liquid coolers and other devices";
    homepage    = "https://github.com/liquidctl/liquidctl";
    changelog   = "https://github.com/liquidctl/liquidctl/blob/master/CHANGELOG.md";
    license     = licenses.gpl3;
    maintainers = with maintainers; [ arturcygan ];
  };
}