wal-e: switch to fetchFromGitHub

This commit is contained in:
Felix Buehler 2021-09-19 19:08:20 +02:00
parent 3dd8b1366e
commit 797843e42b

View File

@ -1,4 +1,4 @@
{ lib, fetchurl, python3Packages, lzop, postgresql, pv }:
{ lib, fetchFromGitHub, python3Packages, lzop, postgresql, pv }:
python3Packages.buildPythonApplication rec {
pname = "wal-e";
@ -6,9 +6,11 @@ python3Packages.buildPythonApplication rec {
namePrefix = "";
src = fetchurl {
url = "https://github.com/wal-e/wal-e/archive/v${version}.tar.gz";
sha256 = "5TTd7NTO73+MCJf3dHIcNojjHdoaKJ1T051iW7Kt9Ow=";
src = fetchFromGitHub {
owner = "wal-e";
repo = "wal-e";
rev = "v${version}";
hash = "sha256-I6suHkAYzDtlNFNPH4SziY93Ryp+NTHkCBuojDvv+U4=";
};
# needs tox
@ -27,7 +29,7 @@ python3Packages.buildPythonApplication rec {
meta = {
description = "A Postgres WAL-shipping disaster recovery and replication toolkit";
homepage = "https://github.com/wal-e/wal-e";
maintainers = [];
maintainers = [ ];
license = lib.licenses.bsd3;
platforms = lib.platforms.linux;
};