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