nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 38 lines 873 B view raw
1{ 2 lib, 3 fetchFromGitHub, 4 python3, 5}: 6 7python3.pkgs.buildPythonApplication rec { 8 pname = "graphw00f"; 9 version = "1.2.1"; 10 format = "other"; 11 12 src = fetchFromGitHub { 13 owner = "dolevf"; 14 repo = "graphw00f"; 15 tag = version; 16 hash = "sha256-8fOvcc//UdDawgGMAhbYQ/O5kd1l2skWGDlFNYocNY8="; 17 }; 18 19 dependencies = with python3.pkgs; [ requests ]; 20 21 installPhase = '' 22 runHook preInstall 23 24 install -vD main.py $out/bin/graphw00f 25 install -vD {conf,version}.py -t $out/${python3.sitePackages}/ 26 install -vD graphw00f/* -t $out/${python3.sitePackages}/graphw00f 27 28 runHook postInstall 29 ''; 30 31 meta = with lib; { 32 description = "GraphQL Server Engine Fingerprinting utility"; 33 homepage = "https://github.com/dolevf/graphw00f"; 34 license = licenses.bsd3; 35 maintainers = with maintainers; [ fab ]; 36 mainProgram = "graphw00f"; 37 }; 38}