diff options
author | Felix Buehler <account@buehler.rocks> | 2021-10-30 16:55:23 +0200 |
---|---|---|
committer | Jonathan Ringer <jonringer@users.noreply.github.com> | 2021-10-30 09:35:11 -0700 |
commit | 971ee7fe70bcf7d6125bfe4c5930ff94241a1fde (patch) | |
tree | 656734a3f1164f6e1ec4f27c25b2ca26453cf4e7 /pkgs/development/python-modules/etcd | |
parent | 848e1bf2a63fe84ddaf1a0885b62a27a8b760d3b (diff) |
pythonPackages.etcd: switch to fetchFromGitHub
Diffstat (limited to 'pkgs/development/python-modules/etcd')
-rw-r--r-- | pkgs/development/python-modules/etcd/default.nix | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/pkgs/development/python-modules/etcd/default.nix b/pkgs/development/python-modules/etcd/default.nix index 0c2fd0c2952d9..a2c4dc971cbc0 100644 --- a/pkgs/development/python-modules/etcd/default.nix +++ b/pkgs/development/python-modules/etcd/default.nix @@ -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 = '' |