powerdns-admin: use packageOverrides

+17 -5
+17 -5
pkgs/applications/networking/powerdns-admin/default.nix
··· 1 - { lib, stdenv, fetchFromGitHub, mkYarnPackage, writeText, python3Packages }: 1 + { lib, stdenv, fetchFromGitHub, mkYarnPackage, writeText, python3 }: 2 2 3 3 let 4 4 version = "0.2.3"; ··· 9 9 sha256 = "16faz57d77mxkflkvwyi8gb9wvnq2vhw79b84v1fmqvxri1yaphw"; 10 10 }; 11 11 12 - pythonDeps = with python3Packages; [ 12 + python = python3.override { 13 + packageOverrides = self: super: { 14 + dnspython = super.dnspython.overridePythonAttrs (oldAttrs: rec { 15 + version = "1.16.0"; 16 + src = oldAttrs.src.override { 17 + inherit version; 18 + sha256 = "36c5e8e38d4369a08b6780b7f27d790a292b2b08eea01607865bf0936c558e01"; 19 + }; 20 + }); 21 + }; 22 + }; 23 + 24 + pythonDeps = with python.pkgs; [ 13 25 flask flask_assets flask_login flask_sqlalchemy flask_migrate flask-seasurf flask_mail flask-sslify 14 26 mysqlclient sqlalchemy 15 - configobj bcrypt requests ldap pyotp qrcode dnspython_1 27 + configobj bcrypt requests ldap pyotp qrcode dnspython 16 28 gunicorn python3-saml pyopenssl pytz cssmin jsmin authlib bravado-core 17 29 lima pytimeparse pyyaml 18 30 ]; ··· 64 76 65 77 inherit src version; 66 78 67 - nativeBuildInputs = [ python3Packages.wrapPython ]; 79 + nativeBuildInputs = [ python.pkgs.wrapPython ]; 68 80 69 81 pythonPath = pythonDeps; 70 82 ··· 96 108 echo "$gunicornScript" > $out/bin/powerdns-admin 97 109 chmod +x $out/bin/powerdns-admin 98 110 wrapProgram $out/bin/powerdns-admin \ 99 - --set PATH ${python3Packages.python}/bin \ 111 + --set PATH ${python.pkgs.python}/bin \ 100 112 --set PYTHONPATH $out/share:$program_PYTHONPATH 101 113 102 114 runHook postInstall