2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
buildPythonPackage,
|
|
|
|
lib,
|
|
|
|
cython,
|
|
|
|
libseccomp,
|
2020-12-03 08:41:04 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2024-06-05 15:53:02 +00:00
|
|
|
pname = "libseccomp";
|
2020-12-03 08:41:04 +00:00
|
|
|
version = libseccomp.version;
|
2024-06-05 15:53:02 +00:00
|
|
|
src = libseccomp.pythonsrc;
|
2020-12-03 08:41:04 +00:00
|
|
|
|
|
|
|
VERSION_RELEASE = version; # used by build system
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cython ];
|
|
|
|
buildInputs = [ libseccomp ];
|
|
|
|
|
|
|
|
unpackCmd = "tar xf $curSrc";
|
|
|
|
doInstallCheck = true;
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace ./setup.py \
|
|
|
|
--replace 'extra_objects=["../.libs/libseccomp.a"]' \
|
|
|
|
'libraries=["seccomp"]'
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python bindings for libseccomp";
|
2024-06-05 15:53:02 +00:00
|
|
|
license = with licenses; [ lgpl21 ];
|
2020-12-03 08:41:04 +00:00
|
|
|
maintainers = with maintainers; [ thoughtpolice ];
|
|
|
|
};
|
|
|
|
}
|