treewide: simplify rev/repo arguments in src
+ use fetchFromGithub where possible
This commit is contained in:
committed by
Jonathan Ringer
parent
c6afa8820b
commit
2c931312ce
@@ -7,7 +7,7 @@ buildPythonApplication rec {
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "c4urself";
|
||||
repo = "${pname}";
|
||||
repo = pname;
|
||||
rev = "refs/tags/v${version}";
|
||||
sha256 = "10p7rg569rk3qvzs5kjj17894bqlsg3ihhbln6ciwwfhkfq1kpja";
|
||||
};
|
||||
@@ -16,12 +16,12 @@ buildPythonApplication rec {
|
||||
# X's in pytest are git tests which won't run in sandbox
|
||||
checkPhase = ''
|
||||
pytest tests/ -k 'not usage_string_fork'
|
||||
'';
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Version-bump your software with a single command";
|
||||
longDescription = ''
|
||||
A small command line tool to simplify releasing software by updating
|
||||
A small command line tool to simplify releasing software by updating
|
||||
all version strings in your source code by the correct increment.
|
||||
'';
|
||||
homepage = "https://github.com/c4urself/bump2version";
|
||||
|
||||
@@ -7,7 +7,7 @@ buildGoModule rec {
|
||||
src = fetchFromGitHub {
|
||||
owner = "gabrie30";
|
||||
repo = "ghorg";
|
||||
rev = "${version}";
|
||||
rev = version;
|
||||
sha256 = "0diwndkckv6fga45j9zngizycn5m71r67cziv0zrx6c66ssbj49w";
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user