From 92a57ed7f11a8c9e3335ea8178d33ac0805cdbaf Mon Sep 17 00:00:00 2001 From: Frederik Rietdijk Date: Wed, 13 Nov 2019 16:03:34 +0100 Subject: [PATCH] afew: use python3 --- .../networking/mailreaders/afew/default.nix | 16 ++++++++-------- pkgs/top-level/all-packages.nix | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/pkgs/applications/networking/mailreaders/afew/default.nix b/pkgs/applications/networking/mailreaders/afew/default.nix index 85b73141966b..54b3e10b5e29 100644 --- a/pkgs/applications/networking/mailreaders/afew/default.nix +++ b/pkgs/applications/networking/mailreaders/afew/default.nix @@ -1,19 +1,19 @@ -{ stdenv, pythonPackages, notmuch }: +{ stdenv, python3Packages, notmuch }: -pythonPackages.buildPythonApplication rec { +python3Packages.buildPythonApplication rec { pname = "afew"; version = "2.0.0"; - src = pythonPackages.fetchPypi { + src = python3Packages.fetchPypi { inherit pname version; sha256 = "0j60501nm242idf2ig0h7p6wrg58n5v2p6zfym56v9pbvnbmns0s"; }; - nativeBuildInputs = with pythonPackages; [ sphinx setuptools_scm ]; + nativeBuildInputs = with python3Packages; [ sphinx setuptools_scm ]; - propagatedBuildInputs = with pythonPackages; [ - pythonPackages.setuptools pythonPackages.notmuch chardet dkimpy - ] ++ stdenv.lib.optional (!pythonPackages.isPy3k) subprocess32; + propagatedBuildInputs = with python3Packages; [ + python3Packages.setuptools python3Packages.notmuch chardet dkimpy + ] ++ stdenv.lib.optional (!python3Packages.isPy3k) subprocess32; makeWrapperArgs = [ ''--prefix PATH ':' "${notmuch}/bin"'' @@ -22,7 +22,7 @@ pythonPackages.buildPythonApplication rec { outputs = [ "out" "doc" ]; postBuild = '' - python setup.py build_sphinx -b html,man + ${python3Packages.python.interpreter} setup.py build_sphinx -b html,man ''; postInstall = '' diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 82c9d74ab6a3..6a34db81be97 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -537,7 +537,7 @@ in amass = callPackage ../tools/networking/amass { }; - afew = callPackage ../applications/networking/mailreaders/afew { pythonPackages = python3Packages; }; + afew = callPackage ../applications/networking/mailreaders/afew { }; afio = callPackage ../tools/archivers/afio { };