evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / development / python-modules / libknot / default.nix
blobabaccdefa96f37a4963b456e50f8486237a0d4b4
2   lib,
3   buildPythonPackage,
4   fetchPypi,
6   # build-system
7   hatchling,
9   # native dependencies
10   knot-dns,
13 buildPythonPackage rec {
14   pname = "libknot";
15   version = "3.4.1";
16   pyproject = true;
18   src = fetchPypi {
19     inherit pname version;
20     hash = "sha256-NJmOm2PIbH4GeDN1XlKKeLePHGatDQlWDPJtn5tUO3s=";
21   };
23   postPatch = ''
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"
27   '';
29   build-system = [ hatchling ];
31   pythonImportsCheck = [ "libknot" ];
33   meta = with lib; {
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 ];
38   };