1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 ldap3,
6 pythonOlder,
7 setuptools,
8}:
9
10buildPythonPackage rec {
11 pname = "sectools";
12 version = "1.4.3";
13 pyproject = true;
14
15 disabled = pythonOlder "3.7";
16
17 src = fetchFromGitHub {
18 owner = "p0dalirius";
19 repo = "sectools";
20 rev = "refs/tags/${version}";
21 hash = "sha256-k3k1/DFmv0resnsNht/C+2Xh6qbSQmk83eN/3vtDU00=";
22 };
23
24 nativeBuildInputs = [ setuptools ];
25
26 propagatedBuildInputs = [ ldap3 ];
27
28 # Module has no tests
29 doCheck = false;
30
31 pythonImportsCheck = [ "sectools" ];
32
33 meta = with lib; {
34 description = "library containing functions to write security tools";
35 homepage = "https://github.com/p0dalirius/sectools";
36 changelog = "https://github.com/p0dalirius/sectools/releases/tag/${version}";
37 license = with licenses; [ gpl3Only ];
38 maintainers = with maintainers; [ fab ];
39 };
40}