summaryrefslogtreecommitdiffstats
path: root/pkgs
diff options
context:
space:
mode:
authorJonathan Ringer <jonringer117@gmail.com>2020-11-01 12:06:25 -0800
committerJonathan Ringer <jonringer@users.noreply.github.com>2020-11-23 16:18:40 -0800
commitcc5a3cb5470160520d60eabe65ebfdd60b9ec6a6 (patch)
treeb88767a19ed7bea7eff0c580f82c12c576b4a0a1 /pkgs
parent11ab3049e92dedac3c8b3d693aac513b44f355f3 (diff)
pipreqs: use python3
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/tools/misc/pipreqs/default.nix11
1 files changed, 6 insertions, 5 deletions
diff --git a/pkgs/tools/misc/pipreqs/default.nix b/pkgs/tools/misc/pipreqs/default.nix
index bbd4125c4b0e..3f27be2c9f94 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;