python3Packages.sss: init at 2.9.7

This commit is contained in:
liberodark
2025-09-24 15:53:14 +02:00
parent dc2b24b801
commit e2a48113dd
2 changed files with 75 additions and 0 deletions
@@ -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
;
};
}
+2
View File
@@ -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 { };