nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 69 lines 1.1 kB view raw
1{ 2 lib, 3 python3Packages, 4 fetchPypi, 5 pkgs, 6 testers, 7 afew, 8}: 9 10python3Packages.buildPythonApplication rec { 11 pname = "afew"; 12 version = "3.0.1"; 13 pyproject = true; 14 15 src = fetchPypi { 16 inherit pname version; 17 sha256 = "0wpfqbqjlfb9z0hafvdhkm7qw56cr9kfy6n8vb0q42dwlghpz1ff"; 18 }; 19 20 nativeBuildInputs = with python3Packages; [ 21 sphinxHook 22 setuptools 23 setuptools-scm 24 ]; 25 26 sphinxBuilders = [ 27 "html" 28 "man" 29 ]; 30 31 propagatedBuildInputs = with python3Packages; [ 32 chardet 33 dkimpy 34 notmuch 35 setuptools 36 ]; 37 38 nativeCheckInputs = [ 39 pkgs.notmuch 40 ] 41 ++ (with python3Packages; [ 42 freezegun 43 pytestCheckHook 44 ]); 45 46 makeWrapperArgs = [ 47 ''--prefix PATH ':' "${pkgs.notmuch}/bin"'' 48 ]; 49 50 outputs = [ 51 "out" 52 "doc" 53 "man" 54 ]; 55 56 passthru.tests = { 57 version = testers.testVersion { 58 package = afew; 59 }; 60 }; 61 62 meta = { 63 homepage = "https://github.com/afewmail/afew"; 64 description = "Initial tagging script for notmuch mail"; 65 mainProgram = "afew"; 66 license = lib.licenses.isc; 67 maintainers = with lib.maintainers; [ flokli ]; 68 }; 69}