2023-05-25 20:37:59 +02:00
|
|
|
{ lib, python3, fetchPypi }:
|
2018-12-21 23:11:12 +01:00
|
|
|
|
2020-11-01 21:06:25 +01:00
|
|
|
with python3.pkgs;
|
|
|
|
|
|
|
|
buildPythonApplication rec {
|
2018-12-21 23:11:12 +01:00
|
|
|
pname = "pipreqs";
|
2023-08-20 23:06:41 +02:00
|
|
|
version = "0.4.13";
|
2018-12-21 23:11:12 +01:00
|
|
|
|
2020-11-01 21:06:25 +01:00
|
|
|
src = fetchPypi {
|
2018-12-21 23:11:12 +01:00
|
|
|
inherit pname version;
|
2023-08-20 23:06:41 +02:00
|
|
|
hash = "sha256-oX8WeIC2khvjdTPOTIHdxuIrRlwQeq1VfbQ7Gt1WqZs=";
|
2018-12-21 23:11:12 +01:00
|
|
|
};
|
|
|
|
|
2020-11-01 21:06:25 +01:00
|
|
|
propagatedBuildInputs = [ yarg docopt ];
|
2018-12-21 23:11:12 +01:00
|
|
|
|
|
|
|
# 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 ];
|
2023-11-27 02:17:53 +01:00
|
|
|
mainProgram = "pipreqs";
|
2018-12-21 23:11:12 +01:00
|
|
|
};
|
|
|
|
}
|