3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/liquidctl/default.nix

42 lines
899 B
Nix
Raw Normal View History

2021-01-02 20:01:34 +00:00
{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, docopt
, hidapi
, pyusb
, smbus-cffi
}:
buildPythonPackage rec {
pname = "liquidctl";
version = "1.5.1";
2021-01-02 20:01:34 +00:00
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = "v${version}";
sha256 = "1l6cvm8vs2gkmg4qwg5m5vqjql1gah2vd9vs7pcj2v5hf0cm5v9x";
2021-01-02 20:01:34 +00:00
};
propagatedBuildInputs = [
docopt
hidapi
pyusb
smbus-cffi
];
# does not contain tests
doCheck = false;
pythonImportsCheck = [ "liquidctl" ];
2021-01-02 20:01:34 +00:00
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 ];
};
}