nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 36 lines 774 B view raw
1{ 2 lib, 3 python3, 4 fetchPypi, 5}: 6 7python3.pkgs.buildPythonApplication rec { 8 pname = "pipreqs"; 9 version = "0.4.13"; 10 pyproject = true; 11 12 src = fetchPypi { 13 inherit pname version; 14 hash = "sha256-oX8WeIC2khvjdTPOTIHdxuIrRlwQeq1VfbQ7Gt1WqZs="; 15 }; 16 17 build-system = with python3.pkgs; [ setuptools ]; 18 19 dependencies = with python3.pkgs; [ 20 yarg 21 docopt 22 ]; 23 24 # Tests requires network access. Works fine without sandboxing 25 doCheck = false; 26 27 pythonImportsCheck = [ "pipreqs" ]; 28 29 meta = { 30 description = "Generate requirements.txt file for any project based on imports"; 31 homepage = "https://github.com/bndr/pipreqs"; 32 license = lib.licenses.asl20; 33 maintainers = with lib.maintainers; [ psyanticy ]; 34 mainProgram = "pipreqs"; 35 }; 36}