Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
890 B · 40 lines
Nix
at llvm-cleanup
1234567891011121314151617181920212223242526272829303132333435363738394041{ lib, buildPythonPackage, fetchPypi,
# build-system hatchling,
# native dependencies knot-dns,}:
buildPythonPackage rec { pname = "libknot"; version = "3.3.5"; pyproject = true;
src = fetchPypi { inherit pname version; hash = "sha256-nEeDawZ/kChHQA3qoEKy+R+Uy7ogNL3ows3Yzs5OhpY="; };
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" '';
nativeBuildInputs = [ hatchling ];
pythonImportsCheck = [ "libknot" ];
meta = with lib; { description = "Python bindings for libknot"; homepage = "https://gitlab.nic.cz/knot/knot-dns/-/tree/master/python/libknot"; license = licenses.gpl3Only; maintainers = with maintainers; [ hexa ]; mainProgram = "libknot"; };}