Something went wrong. Try again.
lol
Something went wrong. Try again.
854 B · 39 lines
Nix
at master
12345678910111213141516171819202122232425262728293031323334353637383940{ lib, buildPythonPackage, fetchPypi,
# build-system hatchling,
# native dependencies knot-dns,}:
buildPythonPackage rec { pname = "libknot"; version = "3.5.4"; pyproject = true;
src = fetchPypi { inherit pname version; hash = "sha256-pwXOlz5oxtDOkUXWcqTSwPc9BeYaikG4E7qJ4rbVsAk="; };
postPatch = '' substituteInPlace libknot/__init__.py \ --replace "libknot%s.dylib" "${lib.getLib knot-dns}/lib/libknot%s.dylib" \ --replace "libknot.so%s" "${lib.getLib knot-dns}/lib/libknot.so%s" '';
build-system = [ hatchling ];
pythonImportsCheck = [ "libknot" ];
meta = { description = "Python bindings for libknot"; homepage = "https://gitlab.nic.cz/knot/knot-dns/-/tree/master/python/libknot"; license = lib.licenses.gpl3Only; maintainers = with lib.maintainers; [ hexa ]; };}