at 24.11-pre 26 lines 512 B view raw
1{ lib 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) description homepage license platforms maintainers; 25 }; 26}