treewide: simplify rev/repo arguments in src

+ use fetchFromGithub where possible
This commit is contained in:
Pavol Rusnak
2020-11-01 23:02:24 -08:00
committed by Jonathan Ringer
parent c6afa8820b
commit 2c931312ce
86 changed files with 148 additions and 134 deletions
@@ -1,6 +1,6 @@
{ stdenv
, buildPythonPackage
, fetchgit
, fetchFromGitHub
, pyramid
, hawkauthlib
, tokenlib
@@ -8,11 +8,12 @@
}:
buildPythonPackage rec {
pname = "pyramidhawkauth";
pname = "pyramid_hawkauth";
version = "0.1.0";
src = fetchgit {
url = "https://github.com/mozilla-services/pyramid_hawkauth.git";
src = fetchFromGitHub {
owner = "mozilla-services";
repo = pname;
rev = "refs/tags/v${version}";
sha256 = "038ign7qlavlmvrhb2y8bygbxvy4j7bx2k1zg0i3wblg2ja50w7h";
};