nixpkgs/pkgs/applications/misc/acpic/default.nix
Alexis Hildebrandt bf995e3641 treewide: Remove ending period from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*".*\.";' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*)\.";/\1";/'
2024-06-09 23:04:51 +02:00

37 lines
726 B
Nix

{ lib
, fetchPypi
, python3Packages
}:
python3Packages.buildPythonApplication rec {
pname = "acpic";
version = "1.0.0";
pyproject = true;
src = fetchPypi {
inherit version pname;
hash = "sha256-vQ9VxCNbOmqHIY3e1wq1wNJl5ywfU2tm62gDg3vKvcg=";
};
postPatch = ''
substituteInPlace setup.py \
--replace "pbr>=5.8.1,<6" "pbr"
'';
nativeBuildInputs = with python3Packages; [
pbr
setuptools
];
# no tests
doCheck = false;
meta = with lib; {
description = "Daemon extending acpid event handling capabilities";
mainProgram = "acpic";
homepage = "https://github.com/psliwka/acpic";
license = licenses.wtfpl;
maintainers = with maintainers; [ aacebedo ];
};
}