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,14 +1,15 @@
{ stdenv
, buildPythonPackage
, fetchgit
, fetchFromGitHub
}:
buildPythonPackage rec {
pname = "unpaddedbase64";
version = "1.1.0";
src = fetchgit {
url = "https://github.com/matrix-org/python-unpaddedbase64.git";
src = fetchFromGitHub {
owner = "matrix-org";
repo = "python-${pname}";
rev = "refs/tags/v${version}";
sha256 = "0if3fjfxga0bwdq47v77fs9hrcqpmwdxry2i2a7pdqsp95258nxd";
};