afancontrol: init at 3.1.0

This commit is contained in:
Simon Bruder 2023-01-22 15:03:39 +01:00
parent ff4ce742bf
commit d907a41518
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC
3 changed files with 30 additions and 0 deletions

27
afancontrol/default.nix Normal file
View file

@ -0,0 +1,27 @@
{ lib, buildPythonPackage, fetchPypi, click, pytestCheckHook, requests }:
buildPythonPackage rec {
pname = "afancontrol";
version = "3.1.0";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-FAOZWoSi7IgONtNspUxR4h5FnkkrNrE0N861t5LHpGw=";
};
propagatedBuildInputs = [ click ];
checkInputs = [ pytestCheckHook requests ];
postInstall = ''
substituteInPlace $out/etc/systemd/system/afancontrol.service \
--replace "/usr/bin/afancontrol" "$out/bin/afancontrol"
'';
meta = with lib; {
description = "Advanced Fan Control program, which controls PWM fans according to the current temperatures of the system components";
homepage = "https://afancontrol.readthedocs.io/";
license = licenses.mit;
maintainers = with maintainers; [ sbruder ];
platforms = platforms.linux;
};
}

View file

@ -15,6 +15,8 @@ in
};
python3Packages = prev.recurseIntoAttrs final.python3.pkgs;
afancontrol = callPythonPackage ./afancontrol { };
colorchord2 = callPackage ./colorchord2 { };

View file

@ -47,6 +47,7 @@
(flake-utils.lib.flattenTree {
inherit (pkgs)
VisiCut
afancontrol
colorchord2
fSpy
face_morpher