python313Packages.traits: fix build (#373698)
[NixPkgs.git] / pkgs / development / python-modules / dsinternals / default.nix
blobef827f13ba1589eb97627f7b1ad4db50073e998f
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   pycryptodomex,
6   pyopenssl,
7   pytestCheckHook,
8   pythonOlder,
9 }:
11 buildPythonPackage rec {
12   pname = "dsinternals";
13   version = "1.2.4";
14   format = "setuptools";
16   disabled = pythonOlder "3.7";
18   src = fetchFromGitHub {
19     owner = "p0dalirius";
20     repo = "pydsinternals";
21     rev = version;
22     hash = "sha256-C1ar9c4F4WI5ICX7PJe8FzVwK8bxZds+kMBpttEp9Ko=";
23   };
25   propagatedBuildInputs = [
26     pyopenssl
27     pycryptodomex
28   ];
30   nativeCheckInputs = [ pytestCheckHook ];
32   pythonImportsCheck = [ "dsinternals" ];
34   pytestFlagsArray = [ "tests/*.py" ];
36   meta = with lib; {
37     description = "Module to interact with Windows Active Directory";
38     homepage = "https://github.com/p0dalirius/pydsinternals";
39     license = licenses.gpl2Only;
40     maintainers = with maintainers; [ fab ];
41   };