diff options
Diffstat (limited to 'nixpkgs/pkgs/by-name/pa')
-rw-r--r-- | nixpkgs/pkgs/by-name/pa/pacu/package.nix | 85 | ||||
-rw-r--r-- | nixpkgs/pkgs/by-name/pa/passes/package.nix | 1 | ||||
-rw-r--r-- | nixpkgs/pkgs/by-name/pa/payme/package.nix | 39 |
3 files changed, 125 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/by-name/pa/pacu/package.nix b/nixpkgs/pkgs/by-name/pa/pacu/package.nix new file mode 100644 index 000000000000..91122b15a79d --- /dev/null +++ b/nixpkgs/pkgs/by-name/pa/pacu/package.nix @@ -0,0 +1,85 @@ +{ lib +, awscli +, fetchFromGitHub +, python3 +}: + + +let + python = python3.override { + packageOverrides = self: super: { + sqlalchemy = super.sqlalchemy_1_4; + }; + }; +in python.pkgs.buildPythonApplication rec { + pname = "pacu"; + version = "1.5.2"; + pyproject = true; + + src = fetchFromGitHub { + owner = "RhinoSecurityLabs"; + repo = "pacu"; + rev = "refs/tags/v${version}"; + hash = "sha256-Ty++jNJTk8YKy6Sl6xj1Xs25ZxJCeF9m/iwdA2fRXnI="; + }; + + pythonRelaxDeps = [ + "dsnap" + "sqlalchemy-utils" + "sqlalchemy" + "urllib3" + ]; + + nativeBuildInputs = with python.pkgs; [ + poetry-core + pythonRelaxDepsHook + ]; + + propagatedBuildInputs = [ + awscli + ] ++ (with python.pkgs; [ + awscli + boto3 + botocore + chalice + dsnap + jq + policyuniverse + pycognito + pyyaml + qrcode + requests + sqlalchemy + sqlalchemy-utils + toml + typing-extensions + urllib3 + ]); + + nativeCheckInputs = with python.pkgs; [ + moto + pytestCheckHook + ]; + + postBuild = '' + export HOME=$(mktemp -d) + ''; + + pythonImportsCheck = [ + "pacu" + ]; + + disabledTests = [ + # sqlalchemy.exc.ArgumentError: Textual SQL expression + #"test_migrations" + ]; + + meta = with lib; { + description = "AWS exploitation framework"; + homepage = "https://github.com/RhinoSecurityLabs/pacu"; + changelog = "https://github.com/RhinoSecurityLabs/pacu/releases/tag/v${version}"; + license = licenses.bsd3; + maintainers = with maintainers; [ fab ]; + mainProgram = "pacu"; + }; +} diff --git a/nixpkgs/pkgs/by-name/pa/passes/package.nix b/nixpkgs/pkgs/by-name/pa/passes/package.nix index 39a502038b52..e7abf9d95f00 100644 --- a/nixpkgs/pkgs/by-name/pa/passes/package.nix +++ b/nixpkgs/pkgs/by-name/pa/passes/package.nix @@ -58,6 +58,7 @@ stdenv.mkDerivation (finalAttrs: { meta = with lib; { description = "A digital pass manager"; + mainProgram = "passes"; homepage = "https://github.com/pablo-s/passes"; license = licenses.gpl3Plus; maintainers = with maintainers; [ fgaz ]; diff --git a/nixpkgs/pkgs/by-name/pa/payme/package.nix b/nixpkgs/pkgs/by-name/pa/payme/package.nix new file mode 100644 index 000000000000..5465274e1863 --- /dev/null +++ b/nixpkgs/pkgs/by-name/pa/payme/package.nix @@ -0,0 +1,39 @@ +{ lib, buildGoModule, fetchFromGitHub }: + +buildGoModule rec { + pname = "payme"; + version = "1.2.0"; + + src = fetchFromGitHub { + owner = "jovandeginste"; + repo = "payme"; + rev = "v${version}"; + hash = "sha256-2gZgmYgLaJQRQ+3VOUDnMm5QBjfKyxyutVf9NrbGO3g="; + leaveDotGit = true; + postFetch = '' + cd "$out" + git rev-parse HEAD > $out/COMMIT + find "$out" -name .git -print0 | xargs -0 rm -rf + ''; + }; + + vendorHash = null; + + ldflags = [ + "-s" + "-w" + "-X main.gitRefName=${src.rev}" + ]; + + preBuild = '' + ldflags+=" -X main.gitCommit=$(cat COMMIT)" + ''; + + meta = { + description = "QR code generator (ASCII & PNG) for SEPA payments"; + mainProgram = "payme"; + homepage = "https://github.com/jovandeginste/payme"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ cimm ]; + }; +} |