depot/third_party/nixpkgs/pkgs/tools/misc/pipreqs/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

24 lines
741 B
Nix

{ lib, python2Packages }:
# Using python 2 because when packaging with python 3 pipreqs fails to parse python 2 code.
python2Packages.buildPythonApplication rec {
pname = "pipreqs";
version = "0.4.10";
src = python2Packages.fetchPypi {
inherit pname version;
sha256 = "0fdr3mbxjpmrxr7yfc1sn9kbpcyb0qwafimhhrrqvf989dj1sdcy";
};
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";
homepage = "https://github.com/bndr/pipreqs";
license = licenses.asl20;
maintainers = with maintainers; [ psyanticy ];
};
}