pipreqs: use python3

This commit is contained in:
Jonathan Ringer 2020-11-01 12:06:25 -08:00 committed by Jonathan Ringer
parent 11ab3049e9
commit cc5a3cb547

View file

@ -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;