python3Packages.pyunbound: migrate to python-modules and build with buildPythonPackage

This commit is contained in:
aleksana
2024-06-19 16:15:51 +08:00
parent 01ef5abcfa
commit 1fef68b065
2 changed files with 5 additions and 6 deletions
@@ -1,11 +1,10 @@
{ lib, stdenv, unbound, openssl, expat, libevent, swig, pythonPackages }:
{ lib, buildPythonPackage, unbound, openssl, expat, libevent, swig, python, stdenv }:
let
inherit (pythonPackages) python;
in
stdenv.mkDerivation rec {
buildPythonPackage rec {
pname = "pyunbound";
inherit (unbound) version src;
pyproject = false; # Built with configure script
patches = unbound.patches or null;
nativeBuildInputs = [ swig ];
+1 -1
View File
@@ -12754,7 +12754,7 @@ self: super: with self; {
inherit (pkgs) udev;
};
pyunbound = toPythonModule (callPackage ../tools/networking/unbound/python.nix { });
pyunbound = callPackage ../development/python-modules/pyunbound { };
pyunifi = callPackage ../development/python-modules/pyunifi { };