nixpkgs/pkgs/development/tools/pifpaf/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

45 lines
812 B
Nix

{ lib
, python3
, fetchPypi
}:
python3.pkgs.buildPythonApplication rec {
pname = "pifpaf";
version = "3.1.5";
format = "setuptools";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-lmixfUP+pq0RdyXeY6MmUQOx1sMLHqojOKUK1mivbaU=";
};
propagatedBuildInputs = with python3.pkgs; [
click
daiquiri
fixtures
jinja2
pbr
psutil
xattr
];
preCheck = ''
export PATH=$out/bin:$PATH
'';
nativeCheckInputs = with python3.pkgs; [
requests
testtools
];
pythonImportsCheck = [ "pifpaf" ];
meta = with lib; {
description = "Suite of tools and fixtures to manage daemons for testing";
mainProgram = "pifpaf";
homepage = "https://github.com/jd/pifpaf";
license = licenses.asl20;
maintainers = with maintainers; [ ];
};
}