depot/third_party/nixpkgs/pkgs/development/python-modules/seccomp/default.nix
Default email 51e09efdfc Project import generated by Copybara.
GitOrigin-RevId: 296793637b22bdb4d23b479879eba0a71c132a66
2020-12-03 09:41:04 +01:00

29 lines
686 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 ];
};
}