depot/third_party/nixpkgs/pkgs/tools/misc/pipreqs/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

26 lines
644 B
Nix

{ lib, python3, fetchPypi }:
with python3.pkgs;
buildPythonApplication rec {
pname = "pipreqs";
version = "0.4.13";
src = fetchPypi {
inherit pname version;
hash = "sha256-oX8WeIC2khvjdTPOTIHdxuIrRlwQeq1VfbQ7Gt1WqZs=";
};
propagatedBuildInputs = [ 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";
homepage = "https://github.com/bndr/pipreqs";
license = licenses.asl20;
maintainers = with maintainers; [ psyanticy ];
mainProgram = "pipreqs";
};
}