Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
72 lines
1.4 KiB
Nix
72 lines
1.4 KiB
Nix
{
|
|
lib,
|
|
python3Packages,
|
|
fetchFromGitHub,
|
|
versionCheckHook,
|
|
nixosTests,
|
|
nix-update-script,
|
|
writableTmpDirAsHomeHook,
|
|
}:
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
pname = "patroni";
|
|
version = "4.1.0";
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "zalando";
|
|
repo = "patroni";
|
|
tag = "v${version}";
|
|
sha256 = "sha256-iY5QLbJXfQtfkzpQxvqSOzYQwgfFsBh8HPYujqxU44k=";
|
|
};
|
|
|
|
dependencies = with python3Packages; [
|
|
boto3
|
|
click
|
|
consul
|
|
dnspython
|
|
kazoo
|
|
kubernetes
|
|
prettytable
|
|
psutil
|
|
psycopg2
|
|
pysyncobj
|
|
python-dateutil
|
|
python-etcd
|
|
pyyaml
|
|
tzlocal
|
|
urllib3
|
|
ydiff
|
|
];
|
|
|
|
pythonImportsCheck = [ "patroni" ];
|
|
|
|
nativeCheckInputs = with python3Packages; [
|
|
flake8
|
|
mock
|
|
pytestCheckHook
|
|
pytest-cov-stub
|
|
requests
|
|
versionCheckHook
|
|
writableTmpDirAsHomeHook
|
|
];
|
|
versionCheckProgramArg = "--version";
|
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
passthru = {
|
|
tests.patroni = nixosTests.patroni;
|
|
|
|
updateScript = nix-update-script { };
|
|
};
|
|
|
|
meta = {
|
|
homepage = "https://patroni.readthedocs.io/en/latest/";
|
|
description = "Template for PostgreSQL HA with ZooKeeper, etcd or Consul";
|
|
changelog = "https://github.com/patroni/patroni/blob/v${version}/docs/releases.rst";
|
|
license = lib.licenses.mit;
|
|
platforms = lib.platforms.unix;
|
|
teams = [ lib.teams.deshaw ];
|
|
};
|
|
}
|