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