Files
nixpkgs/pkgs/by-name/af/afew/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

70 lines
1.1 KiB
Nix

{
lib,
python3Packages,
fetchPypi,
pkgs,
testers,
afew,
}:
python3Packages.buildPythonApplication rec {
pname = "afew";
version = "3.0.1";
pyproject = true;
src = fetchPypi {
inherit pname version;
sha256 = "0wpfqbqjlfb9z0hafvdhkm7qw56cr9kfy6n8vb0q42dwlghpz1ff";
};
nativeBuildInputs = with python3Packages; [
sphinxHook
setuptools
setuptools-scm
];
sphinxBuilders = [
"html"
"man"
];
propagatedBuildInputs = with python3Packages; [
chardet
dkimpy
notmuch
setuptools
];
nativeCheckInputs = [
pkgs.notmuch
]
++ (with python3Packages; [
freezegun
pytestCheckHook
]);
makeWrapperArgs = [
''--prefix PATH ':' "${pkgs.notmuch}/bin"''
];
outputs = [
"out"
"doc"
"man"
];
passthru.tests = {
version = testers.testVersion {
package = afew;
};
};
meta = {
homepage = "https://github.com/afewmail/afew";
description = "Initial tagging script for notmuch mail";
mainProgram = "afew";
license = lib.licenses.isc;
maintainers = with lib.maintainers; [ flokli ];
};
}