diff --git a/pkgs/servers/sql/patroni/default.nix b/pkgs/by-name/pa/patroni/package.nix similarity index 77% rename from pkgs/servers/sql/patroni/default.nix rename to pkgs/by-name/pa/patroni/package.nix index 19739f2bcca2..526ba2aa87f7 100644 --- a/pkgs/servers/sql/patroni/default.nix +++ b/pkgs/by-name/pa/patroni/package.nix @@ -1,10 +1,11 @@ { lib -, pythonPackages +, python3Packages , fetchFromGitHub , nixosTests +, nix-update-script }: -pythonPackages.buildPythonApplication rec { +python3Packages.buildPythonApplication rec { pname = "patroni"; version = "4.0.2"; @@ -15,7 +16,7 @@ pythonPackages.buildPythonApplication rec { sha256 = "sha256-ykTg5Zd4dU1D6dnj6QbNfGUXrSteKrQjV2hpIPhXGLU="; }; - propagatedBuildInputs = with pythonPackages; [ + propagatedBuildInputs = with python3Packages; [ boto3 click consul @@ -34,7 +35,7 @@ pythonPackages.buildPythonApplication rec { ydiff ]; - nativeCheckInputs = with pythonPackages; [ + nativeCheckInputs = with python3Packages; [ flake8 mock pytestCheckHook @@ -47,8 +48,10 @@ pythonPackages.buildPythonApplication rec { pythonImportsCheck = [ "patroni" ]; - passthru.tests = { - patroni = nixosTests.patroni; + passthru = { + tests.patroni = nixosTests.patroni; + + updateScript = nix-update-script { }; }; meta = with lib; { diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 274e605967cb..5ce611d530dd 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -24865,8 +24865,6 @@ with pkgs; vmfs-tools = callPackage ../tools/filesystems/vmfs-tools { }; - patroni = callPackage ../servers/sql/patroni { pythonPackages = python3Packages; }; - pgbouncer = callPackage ../servers/sql/pgbouncer { }; pgcat = callPackage ../servers/sql/pgcat {};