diff --git a/pkgs/development/python-modules/sss/default.nix b/pkgs/development/python-modules/sss/default.nix new file mode 100644 index 000000000000..71241e26cf74 --- /dev/null +++ b/pkgs/development/python-modules/sss/default.nix @@ -0,0 +1,73 @@ +{ + lib, + buildPythonPackage, + python, + sssd, + + # tests + pytestCheckHook, +}: + +let + sssdForPython = sssd.override { + python3 = python; + }; +in +buildPythonPackage rec { + pname = "sss"; + inherit (sssdForPython) version; + + format = "other"; + dontUnpack = true; + dontBuild = true; + + dependencies = [ + sssdForPython + ]; + + installPhase = '' + runHook preInstall + + mkdir -p $out/${python.sitePackages} + + cp -r ${sssdForPython}/${python.sitePackages}/SSSDConfig $out/${python.sitePackages}/ + install -m 755 ${sssdForPython}/${python.sitePackages}/*.so $out/${python.sitePackages}/ + + runHook postInstall + ''; + + pythonImportsCheck = [ + "sssd" + "pysss" + "pysss_murmur" + "pysss_nss_idmap" + "pyhbac" + "SSSDConfig" + ]; + + nativeCheckInputs = [ + pytestCheckHook + ]; + + # No tests + doCheck = false; + + meta = { + description = "Python bindings for SSSD (System Security Services Daemon)"; + longDescription = '' + This package provides Python bindings for SSSD including: + - sssd: SSSD Python utilities module + - pysss: Core Python module for SSSD operations + - pysss_murmur: MurmurHash implementation + - pysss_nss_idmap: NSS ID mapping functionality + - pyhbac: HBAC (Host-Based Access Control) module + - SSSDConfig: Configuration management module + ''; + inherit (sssd.meta) + homepage + changelog + platforms + maintainers + ; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index dac11ca3e051..f5ef07c40b1d 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -17535,6 +17535,8 @@ self: super: with self; { ssort = callPackage ../development/python-modules/ssort { }; + sss = callPackage ../development/python-modules/sss { }; + st-pages = callPackage ../development/python-modules/st-pages { }; stable-baselines3 = callPackage ../development/python-modules/stable-baselines3 { };