mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
abdf5dc772
It is is now provided automatically, when `pythonRelaxDeps` or `pythonRemoveDeps` is defined through `mk-python-derivation`.
50 lines
976 B
Nix
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";
|
|
};
|
|
}
|