mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 21:03:15 +00:00
580dc52e0b
by using pep517 builder and relaxing pbr constraint
36 lines
700 B
Nix
36 lines
700 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.";
|
|
homepage = "https://github.com/psliwka/acpic";
|
|
license = licenses.wtfpl;
|
|
maintainers = with maintainers; [ aacebedo ];
|
|
};
|
|
}
|