pythonPackages.etcd: switch to fetchFromGitHub

This commit is contained in:
Felix Buehler 2021-10-30 16:55:23 +02:00 committed by Jonathan Ringer
parent 848e1bf2a6
commit 971ee7fe70

View File

@ -1,6 +1,6 @@
{ lib
, buildPythonPackage
, fetchurl
, fetchFromGitHub
, simplejson
, pytz
, requests
@ -11,9 +11,11 @@ buildPythonPackage rec {
version = "2.0.8";
# PyPI package is incomplete
src = fetchurl {
url = "https://github.com/dsoprea/PythonEtcdClient/archive/${version}.tar.gz";
sha256 = "0fi6rxa1yxvz7nwrc7dw6fax3041d6bj3iyhywjgbkg7nadi9i8v";
src = fetchFromGitHub {
owner = "dsoprea";
repo = "PythonEtcdClient";
rev = version;
sha256 = "sha256-h+jYIRSNdrGkW3tBV1ifIDEXU46EQGyeJoz/Mxym4pI=";
};
patchPhase = ''