My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/seccomp/default.nix

29 lines
686 B

{ 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 ];
};
}