1{
2 lib,
3 buildPythonPackage,
4 python,
5 sssd,
6
7 # tests
8 pytestCheckHook,
9}:
10
11let
12 sssdForPython = sssd.override {
13 python3 = python;
14 };
15in
16buildPythonPackage rec {
17 pname = "sss";
18 inherit (sssdForPython) version;
19
20 format = "other";
21 dontUnpack = true;
22 dontBuild = true;
23
24 dependencies = [
25 sssdForPython
26 ];
27
28 installPhase = ''
29 runHook preInstall
30
31 mkdir -p $out/${python.sitePackages}
32
33 cp -r ${sssdForPython}/${python.sitePackages}/SSSDConfig $out/${python.sitePackages}/
34 install -m 755 ${sssdForPython}/${python.sitePackages}/*.so $out/${python.sitePackages}/
35
36 runHook postInstall
37 '';
38
39 pythonImportsCheck = [
40 "sssd"
41 "pysss"
42 "pysss_murmur"
43 "pysss_nss_idmap"
44 "pyhbac"
45 "SSSDConfig"
46 ];
47
48 nativeCheckInputs = [
49 pytestCheckHook
50 ];
51
52 # No tests
53 doCheck = false;
54
55 meta = {
56 description = "Python bindings for SSSD (System Security Services Daemon)";
57 longDescription = ''
58 This package provides Python bindings for SSSD including:
59 - sssd: SSSD Python utilities module
60 - pysss: Core Python module for SSSD operations
61 - pysss_murmur: MurmurHash implementation
62 - pysss_nss_idmap: NSS ID mapping functionality
63 - pyhbac: HBAC (Host-Based Access Control) module
64 - SSSDConfig: Configuration management module
65 '';
66 inherit (sssd.meta)
67 homepage
68 changelog
69 platforms
70 maintainers
71 ;
72 };
73}