1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-11 15:15:36 +00:00

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. with python3.pkgs;
python2Packages.buildPythonApplication rec {
buildPythonApplication rec {
pname = "pipreqs"; pname = "pipreqs";
version = "0.4.10"; version = "0.4.10";
src = python2Packages.fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "0fdr3mbxjpmrxr7yfc1sn9kbpcyb0qwafimhhrrqvf989dj1sdcy"; sha256 = "0fdr3mbxjpmrxr7yfc1sn9kbpcyb0qwafimhhrrqvf989dj1sdcy";
}; };
propagatedBuildInputs = with python2Packages; [ yarg docopt ]; propagatedBuildInputs = [ yarg docopt ];
# Tests requires network access. Works fine without sandboxing # Tests requires network access. Works fine without sandboxing
doCheck = false; doCheck = false;