nixpkgs/pkgs/tools/security/lil-pwny/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

34 lines
762 B
Nix

{ lib
, python3
, fetchFromGitHub
}:
python3.pkgs.buildPythonApplication rec {
pname = "lil-pwny";
version = "2.0.0";
format = "setuptools";
src = fetchFromGitHub {
owner = "PaperMtn";
repo = "lil-pwny";
rev = "refs/tags/${version}";
hash = "sha256-EE6+PQTmvAv5EvxI9QR/dQcPby13BBk66KSc7XDNAZA=";
};
# Project has no test
doCheck = false;
pythonImportsCheck = [
"lil_pwny"
];
meta = with lib; {
description = "Offline auditing of Active Directory passwords";
mainProgram = "lil-pwny";
homepage = "https://github.com/PaperMtn/lil-pwny";
changelog = "https://github.com/PaperMtn/lil-pwny/blob/${version}/CHANGELOG.md";
license = licenses.gpl3Only;
maintainers = with maintainers; [ fab ];
};
}