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

@@ -16,7 +16,7 @@ buildPythonPackage rec {
src = fetchFromGitHub {
owner = "jimfunk";
repo = "${pname}";
repo = pname;
rev = "v${version}";
sha256 = "1rrh38f3zl3jk5ijs6g75dxxvxygf4lczbgc7ahrgzf58g4a48lm";
};

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";
};

View File

@@ -20,7 +20,7 @@ stdenv.mkDerivation rec {
src = fetchFromGitLab {
owner = "stuko";
repo = "${pname}";
repo = pname;
rev = "v${version}";
sha256 = "0rm1qxa0fanaaqg0idr6rf2s2xlbyn1dzjzwh3rddy9mgl60lj2h";
};

View File

@@ -7,7 +7,7 @@ buildPythonPackage rec {
src = fetchFromGitHub {
owner = "spatialaudio";
repo = "python-pa-ringbuffer";
rev = "${version}";
rev = version;
sha256 = "0afpydy1l20hd1xncjppjhqa2c8dj5h9nlv4z8m55cs9hc9h1mxv";
};

View File

@@ -11,7 +11,7 @@ buildPythonPackage rec {
src = fetchFromGitHub {
owner = "olucurious";
repo = "pyfcm";
rev = "${version}";
rev = version;
sha256 = "0aj10yvjsc04j15zbn403i83j7ra5yg35pi3ywkyakk8n1s0s3qg";
};

View File

@@ -1,14 +1,15 @@
{ stdenv
, buildPythonPackage
, fetchgit
, fetchFromGitHub
}:
buildPythonPackage rec {
pname = "pykka";
version = "2.0.1";
src = fetchgit {
url = "https://github.com/jodal/pykka.git";
src = fetchFromGitHub {
owner = "jodal";
repo = pname;
rev = "refs/tags/v${version}";
sha256 = "011rvv3vzj9rpwaq6vfpz9hfwm6gx1jmad4iri6z12g8nnlpydhs";
};

View File

@@ -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";
};

View File

@@ -17,7 +17,7 @@ buildPythonPackage rec {
src = fetchFromGitHub {
owner = "spatialaudio";
repo = "python-rtmixer";
rev = "${version}";
rev = version;
sha256 = "1bvgzzxiypvvb3qacbcry6761x9sk3dnx7jga7pli63f69vakg4y";
fetchSubmodules = true;
};

View File

@@ -15,7 +15,7 @@ buildPythonPackage rec {
src = fetchFromGitHub {
owner = "alvations";
repo = pname;
rev = "${version}";
rev = version;
sha256 = "1gzr56w8yx82mn08wax5m0xyg15ym4ri5l80gmagp8r53443j770";
};

View File

@@ -1,6 +1,6 @@
{ stdenv
, buildPythonPackage
, fetchgit
, fetchFromGitHub
, canonicaljson
, unpaddedbase64
, pynacl
@@ -11,8 +11,9 @@ buildPythonPackage rec {
pname = "signedjson";
version = "1.1.0";
src = fetchgit {
url = "https://github.com/matrix-org/python-signedjson.git";
src = fetchFromGitHub {
owner = "matrix-org";
repo = "python-${pname}";
rev = "refs/tags/v${version}";
sha256 = "18s388hm3babnvakbbgfqk0jzq25nnznvhygywd3azp9b4yzmd5c";
};

View File

@@ -31,7 +31,7 @@ let
src = fetchFromGitHub {
owner = "tensorflow";
repo = "probability";
rev = "${version}";
rev = version;
sha256 = "07cm8zba8n0ihzdm3k4a4rsg5v62xxsfvcw4h0niz91c0parqjqy";
};

View File

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

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";
};