at master 548 B view raw
1{ 2 buildPythonPackage, 3 setuptools, 4 nftables, 5}: 6 7buildPythonPackage { 8 pname = "nftables"; 9 inherit (nftables) version src; 10 pyproject = true; 11 12 postPatch = '' 13 substituteInPlace "src/nftables.py" \ 14 --replace-fail "libnftables.so.1" "${nftables}/lib/libnftables.so.1" 15 ''; 16 17 setSourceRoot = "sourceRoot=$(echo */py)"; 18 19 build-system = [ setuptools ]; 20 21 pythonImportsCheck = [ "nftables" ]; 22 23 meta = { 24 inherit (nftables.meta) 25 description 26 homepage 27 license 28 platforms 29 maintainers 30 ; 31 }; 32}