treewide: simplify rev/repo arguments in src

+ use fetchFromGithub where possible
This commit is contained in:
Pavol Rusnak
2020-11-01 23:39:49 +01:00
committed by Jonathan Ringer
parent c6afa8820b
commit 2c931312ce
86 changed files with 148 additions and 134 deletions

View File

@@ -1,6 +1,6 @@
{ stdenv
, buildPythonPackage
, fetchgit
, fetchFromGitHub
, requests
, webob
}:
@@ -9,8 +9,9 @@ buildPythonPackage rec {
pname = "hawkauthlib";
version = "0.1.1";
src = fetchgit {
url = "https://github.com/mozilla-services/hawkauthlib.git";
src = fetchFromGitHub {
owner = "mozilla-services";
repo = pname;
rev = "refs/tags/v${version}";
sha256 = "0mr1mpx4j9q7sch9arwfvpysnpf2p7ijy7072wilxm8pnj0bwvsi";
};