Files
nixpkgs/pkgs/development/python-modules/liquidctl/default.nix
T
Michael Daniels 075e8c2c4f treewide: change 'format = "pyproject";' to 'pyproject = true;'
This is almost all find-and-replace.

I manually edited:
* pkgs/development/python-modules/notifications-android-tv/default.nix,
* pkgs/servers/home-assistant/default.nix,
* pkgs/development/tools/continuous-integration/buildbot/master.nix

A few files have not been changed in this PR because they would cause rebuilds.

This PR should have 0 rebuilds.
2026-01-12 17:50:35 -05:00

87 lines
1.6 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
installShellFiles,
setuptools,
setuptools-scm,
wheel,
docopt,
hidapi,
pyusb,
smbus-cffi,
i2c-tools,
pytestCheckHook,
colorlog,
crcmod,
pillow,
udevCheckHook,
}:
buildPythonPackage rec {
pname = "liquidctl";
version = "1.15.0";
pyproject = true;
src = fetchFromGitHub {
owner = "liquidctl";
repo = "liquidctl";
tag = "v${version}";
hash = "sha256-ifYPUAF0lR9aCwiseNQZXbq+d+CXD/MwnZQhAM1TRLI=";
};
nativeBuildInputs = [
installShellFiles
setuptools
setuptools-scm
wheel
udevCheckHook
];
propagatedBuildInputs = [
docopt
hidapi
pyusb
smbus-cffi
i2c-tools
colorlog
crcmod
pillow
];
propagatedNativeBuildInputs = [ smbus-cffi ];
outputs = [
"out"
"man"
];
postInstall = ''
installManPage liquidctl.8
installShellCompletion extra/completions/liquidctl.bash
mkdir -p $out/lib/udev/rules.d
cp extra/linux/71-liquidctl.rules $out/lib/udev/rules.d/.
'';
nativeCheckInputs = [ pytestCheckHook ];
postBuild = ''
# needed for pythonImportsCheck
export XDG_RUNTIME_DIR=$TMPDIR
'';
pythonImportsCheck = [ "liquidctl" ];
meta = {
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/${src.tag}/CHANGELOG.md";
license = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [
arturcygan
];
mainProgram = "liquidctl";
};
}