treewide: simplify rev/repo arguments in src
+ use fetchFromGithub where possible
This commit is contained in:
committed by
Jonathan Ringer
parent
c6afa8820b
commit
2c931312ce
@@ -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";
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user