mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-09 14:33:22 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
62 lines
1.1 KiB
Nix
62 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 = with lib; {
|
|
homepage = "https://github.com/afewmail/afew";
|
|
description = "Initial tagging script for notmuch mail";
|
|
mainProgram = "afew";
|
|
license = licenses.isc;
|
|
maintainers = with maintainers; [ flokli ];
|
|
};
|
|
}
|