diff --git a/pkgs/by-name/al/alot/package.nix b/pkgs/by-name/al/alot/package.nix index da68107498d6..a9a6b36a9635 100644 --- a/pkgs/by-name/al/alot/package.nix +++ b/pkgs/by-name/al/alot/package.nix @@ -1,8 +1,8 @@ { lib, - python311, + python3, + python3Packages, fetchFromGitHub, - file, gnupg, gawk, procps, @@ -10,8 +10,7 @@ withManpage ? false, }: -with python311.pkgs; -buildPythonApplication rec { +python3Packages.buildPythonApplication rec { pname = "alot"; version = "0.11"; pyproject = true; @@ -35,32 +34,35 @@ buildPythonApplication rec { --replace-fail /usr/share "$out/share" ''; - build-system = [ - setuptools-scm - ] - ++ lib.optional withManpage sphinx; + build-system = + with python3Packages; + [ + setuptools + setuptools-scm + ] + ++ lib.optional withManpage sphinx; - dependencies = [ + dependencies = with python3Packages; [ configobj - file gpgme notmuch2 python-magic - service-identity + standard-mailcap twisted urwid urwidtrees ]; nativeCheckInputs = [ - future gawk gnupg - mock - procps - pytestCheckHook notmuch - ]; + procps + ] + ++ (with python3Packages; [ + pytestCheckHook + mock + ]); postBuild = lib.optionalString withManpage [ "make -C docs man" @@ -76,7 +78,7 @@ buildPythonApplication rec { postInstall = let - completionPython = python.withPackages (ps: [ ps.configobj ]); + completionPython = python3.withPackages (ps: [ ps.configobj ]); in lib.optionalString withManpage '' mkdir -p $out/man