Skip to content

Commit

Permalink
pipreqs: use python3
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Ringer committed Nov 24, 2020
1 parent 11ab304 commit cc5a3cb
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions 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;
Expand Down

0 comments on commit cc5a3cb

Please sign in to comment.