patroni: 1.6.5 -> 2.0.1

This commit is contained in:
Fabian Affolter 2021-02-03 10:13:48 +01:00 committed by Jonathan Ringer
parent 84210a8538
commit ca447081a8

View File

@ -1,14 +1,17 @@
{ lib, pythonPackages, fetchFromGitHub }: { lib
, pythonPackages
, fetchFromGitHub
}:
pythonPackages.buildPythonApplication rec { pythonPackages.buildPythonApplication rec {
pname = "patroni"; pname = "patroni";
version = "1.6.5"; version = "2.0.1";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "zalando"; owner = "zalando";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "0iw0ra9fya4bf1vkjq3w5kij4x46yinb90v015pi9c6qfpancfdj"; sha256 = "sha256-IlRltJrEMrRiwVVMYQywb0MqwEoL8MX3do2GlHXjuPc=";
}; };
# cdiff renamed to ydiff; remove when patroni source reflects this. # cdiff renamed to ydiff; remove when patroni source reflects this.
@ -28,6 +31,7 @@ pythonPackages.buildPythonApplication rec {
prettytable prettytable
psutil psutil
psycopg2 psycopg2
pysyncobj
python-dateutil python-dateutil
python-etcd python-etcd
pyyaml pyyaml
@ -40,13 +44,15 @@ pythonPackages.buildPythonApplication rec {
flake8 flake8
mock mock
pytestCheckHook pytestCheckHook
pytestcov pytest-cov
requests requests
]; ];
# Fix tests by preventing them from writing to /homeless-shelter. # Fix tests by preventing them from writing to /homeless-shelter.
preCheck = "export HOME=$(mktemp -d)"; preCheck = "export HOME=$(mktemp -d)";
pythonImportsCheck = [ "patroni" ];
meta = with lib; { meta = with lib; {
homepage = "https://patroni.readthedocs.io/en/latest/"; homepage = "https://patroni.readthedocs.io/en/latest/";
description = "A Template for PostgreSQL HA with ZooKeeper, etcd or Consul"; description = "A Template for PostgreSQL HA with ZooKeeper, etcd or Consul";