python311Packages.bloodhound-py: refactor

This commit is contained in:
Fabian Affolter 2024-01-13 22:12:04 +01:00
parent 62d728844e
commit e99e2ace74

View file

@ -1,10 +1,17 @@
{ lib { lib
, buildPythonPackage
, dnspython
, fetchPypi , fetchPypi
, python3 , impacket
, ldap3
, pycryptodome
, setuptools
}: }:
python3.pkgs.buildPythonPackage rec {
buildPythonPackage rec {
pname = "bloodhound-py"; pname = "bloodhound-py";
version = "1.7.2"; version = "1.7.2";
pyproject = true;
src = fetchPypi { src = fetchPypi {
inherit version; inherit version;
@ -12,17 +19,26 @@ python3.pkgs.buildPythonPackage rec {
hash = "sha256-USZU19dLppoq19+JMFtiojyJk6bj96nP2JQDq7JFkHM="; hash = "sha256-USZU19dLppoq19+JMFtiojyJk6bj96nP2JQDq7JFkHM=";
}; };
propagatedBuildInputs = with python3.pkgs; [ nativeBuildInputs = [
impacket setuptools
ldap3
dnspython
]; ];
# the package has no tests propagatedBuildInputs = [
dnspython
impacket
ldap3
pycryptodome
];
# Module has no tests
doCheck = false; doCheck = false;
pythonImportsCheck = [
"bloodhound"
];
meta = with lib; { meta = with lib; {
description = "Python based ingestor for BloodHound, based on Impacket."; description = "Python based ingestor for BloodHound, based on Impacket";
homepage = "https://github.com/dirkjanm/BloodHound.py"; homepage = "https://github.com/dirkjanm/BloodHound.py";
license = licenses.mit; license = licenses.mit;
maintainers = with maintainers; [ exploitoverload ]; maintainers = with maintainers; [ exploitoverload ];