nixpkgs/pkgs/development/python-modules/sectools/default.nix
Ihar Hrachyshka 567e8dfd8e
treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

37 lines
796 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
ldap3,
setuptools,
}:
buildPythonPackage rec {
pname = "sectools";
version = "1.5.1";
pyproject = true;
src = fetchFromGitHub {
owner = "p0dalirius";
repo = "sectools";
tag = version;
hash = "sha256-iZV7FFfzvirHj4Q2HZQPQTcMIQ7mpc4zQYWAnFwf+q8=";
};
build-system = [ setuptools ];
dependencies = [ ldap3 ];
# Module has no tests
doCheck = false;
pythonImportsCheck = [ "sectools" ];
meta = {
description = "Library containing functions to write security tools";
homepage = "https://github.com/p0dalirius/sectools";
changelog = "https://github.com/p0dalirius/sectools/releases/tag/${src.tag}";
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [ fab ];
};
}