nixpkgs/pkgs/by-name/pr/pre2k/package.nix
Martin Weinelt abdf5dc772
treewide: remove pythonRelaxDepsHook references
It is is now provided automatically, when `pythonRelaxDeps` or
`pythonRemoveDeps` is defined through `mk-python-derivation`.
2024-06-14 14:52:00 +02:00

50 lines
976 B
Nix

{ lib
, fetchFromGitHub
, python3
}:
python3.pkgs.buildPythonApplication rec {
pname = "pre2k";
version = "3.0";
pyproject = true;
src = fetchFromGitHub {
owner = "garrettfoster13";
repo = "pre2k";
rev = "refs/tags/${version}";
hash = "sha256-z1ttuRos7x/zdWiYYozxWzRarFExd4W5rUYAEiUMugU=";
};
pythonRelaxDeps = [
"impacket"
"pyasn1"
"rich"
"typer"
];
nativeBuildInputs = with python3.pkgs; [
poetry-core
];
propagatedBuildInputs = with python3.pkgs; [
impacket
ldap3
pyasn1
rich
typer
];
pythonImportsCheck = [
"pre2k"
];
meta = with lib; {
description = "Tool to query for the existence of pre-windows 2000 computer objects";
homepage = "https://github.com/garrettfoster13/pre2k";
changelog = "https://github.com/garrettfoster13/pre2k/releases/tag/${version}";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
mainProgram = "pre2k";
};
}