13 buildPythonPackage rec {
19 inherit pname version;
20 hash = "sha256-NJmOm2PIbH4GeDN1XlKKeLePHGatDQlWDPJtn5tUO3s=";
24 substituteInPlace libknot/__init__.py \
25 --replace "libknot%s.dylib" "${lib.getLib knot-dns}/lib/libknot%s.dylib" \
26 --replace "libknot.so%s" "${lib.getLib knot-dns}/lib/libknot.so%s"
29 build-system = [ hatchling ];
31 pythonImportsCheck = [ "libknot" ];
34 description = "Python bindings for libknot";
35 homepage = "https://gitlab.nic.cz/knot/knot-dns/-/tree/master/python/libknot";
36 license = licenses.gpl3Only;
37 maintainers = with maintainers; [ hexa ];