mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 12:53:05 +00:00
33 lines
684 B
Nix
33 lines
684 B
Nix
{
|
|
buildPythonPackage,
|
|
lib,
|
|
cython,
|
|
libseccomp,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "libseccomp";
|
|
version = libseccomp.version;
|
|
src = libseccomp.pythonsrc;
|
|
|
|
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";
|
|
license = with licenses; [ lgpl21 ];
|
|
maintainers = with maintainers; [ thoughtpolice ];
|
|
};
|
|
}
|