From cc5a3cb5470160520d60eabe65ebfdd60b9ec6a6 Mon Sep 17 00:00:00 2001 From: Jonathan Ringer Date: Sun, 1 Nov 2020 12:06:25 -0800 Subject: [PATCH] pipreqs: use python3 --- pkgs/tools/misc/pipreqs/default.nix | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/pkgs/tools/misc/pipreqs/default.nix b/pkgs/tools/misc/pipreqs/default.nix index bbd4125c4b0..3f27be2c9f9 100644 --- a/pkgs/tools/misc/pipreqs/default.nix +++ b/pkgs/tools/misc/pipreqs/default.nix @@ -1,16 +1,17 @@ -{ lib, python2Packages }: +{ lib, python3 }: -# Using python 2 because when packaging with python 3 pipreqs fails to parse python 2 code. -python2Packages.buildPythonApplication rec { +with python3.pkgs; + +buildPythonApplication rec { pname = "pipreqs"; version = "0.4.10"; - src = python2Packages.fetchPypi { + src = fetchPypi { inherit pname version; sha256 = "0fdr3mbxjpmrxr7yfc1sn9kbpcyb0qwafimhhrrqvf989dj1sdcy"; }; - propagatedBuildInputs = with python2Packages; [ yarg docopt ]; + propagatedBuildInputs = [ yarg docopt ]; # Tests requires network access. Works fine without sandboxing doCheck = false;