7 pythonPackages.buildPythonApplication rec {
11 src = fetchFromGitHub {
14 rev = "refs/tags/v${version}";
15 sha256 = "sha256-GyPPBoYcJnuMer9FYGhWqursX/qJLaAlc9zFULoJqo4=";
18 propagatedBuildInputs = with pythonPackages; [
37 nativeCheckInputs = with pythonPackages; [
45 # Fix tests by preventing them from writing to /homeless-shelter.
46 preCheck = "export HOME=$(mktemp -d)";
48 pythonImportsCheck = [ "patroni" ];
51 patroni = nixosTests.patroni;
55 homepage = "https://patroni.readthedocs.io/en/latest/";
56 description = "Template for PostgreSQL HA with ZooKeeper, etcd or Consul";
57 license = licenses.mit;
58 platforms = platforms.unix;
59 maintainers = teams.deshaw.members;