diff options
author | Artur Cygan <arczicygan@gmail.com> | 2021-01-02 21:01:34 +0100 |
---|---|---|
committer | Artur Cygan <arczicygan@gmail.com> | 2021-01-02 21:01:34 +0100 |
commit | c5e35cc8cf0bbc5c2ceae2b80e27b9e6f6f6c0bd (patch) | |
tree | 62c54eda6ccf2dc669b090bf50902651d6db6d10 | |
parent | f0e774407c3ce6ac41d79a5a564a9265b6efc600 (diff) |
liquidctl: init at 1.4.2
-rw-r--r-- | pkgs/development/python-modules/liquidctl/default.nix | 37 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 2 | ||||
-rw-r--r-- | pkgs/top-level/python-packages.nix | 2 |
3 files changed, 41 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/liquidctl/default.nix b/pkgs/development/python-modules/liquidctl/default.nix new file mode 100644 index 0000000000000..888f09dba95b4 --- /dev/null +++ b/pkgs/development/python-modules/liquidctl/default.nix @@ -0,0 +1,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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 8f306a3246ce7..4950c36626cfe 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -5603,6 +5603,8 @@ in linuxquota = callPackage ../tools/misc/linuxquota { }; + liquidctl = with python3Packages; toPythonApplication liquidctl; + localtime = callPackage ../tools/system/localtime { }; logcheck = callPackage ../tools/system/logcheck { }; diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 57458230bb11c..4321da849aeb2 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -3578,6 +3578,8 @@ in { linuxfd = callPackage ../development/python-modules/linuxfd { }; + liquidctl = callPackage ../development/python-modules/liquidctl { }; + lirc = disabledIf isPy27 (toPythonModule (pkgs.lirc.override { python3 = python; })); littleutils = callPackage ../development/python-modules/littleutils { }; |