2018-12-21 23:11:12 +01:00
|
|
|
{ lib, python2Packages }:
|
|
|
|
|
|
|
|
# Using python 2 because when packaging with python 3 pipreqs fails to parse python 2 code.
|
|
|
|
python2Packages.buildPythonApplication rec {
|
|
|
|
pname = "pipreqs";
|
2020-01-17 10:52:29 +01:00
|
|
|
version = "0.4.10";
|
2018-12-21 23:11:12 +01:00
|
|
|
|
|
|
|
src = python2Packages.fetchPypi {
|
|
|
|
inherit pname version;
|
2020-01-17 10:52:29 +01:00
|
|
|
sha256 = "0fdr3mbxjpmrxr7yfc1sn9kbpcyb0qwafimhhrrqvf989dj1sdcy";
|
2018-12-21 23:11:12 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python2Packages; [ yarg docopt ];
|
|
|
|
|
|
|
|
# Tests requires network access. Works fine without sandboxing
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Generate requirements.txt file for any project based on imports";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/bndr/pipreqs";
|
2018-12-21 23:11:12 +01:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ psyanticy ];
|
|
|
|
};
|
|
|
|
}
|