2021-01-25 09:26:54 +01:00
|
|
|
{ buildPythonApplication, fetchFromGitHub, isPy27, pytest, testfixtures, lib }:
|
2020-02-13 21:24:17 +01:00
|
|
|
|
|
|
|
buildPythonApplication rec {
|
|
|
|
pname = "bump2version";
|
|
|
|
version = "1.0.0";
|
|
|
|
disabled = isPy27;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "c4urself";
|
2020-11-01 23:39:49 +01:00
|
|
|
repo = pname;
|
2020-02-13 21:24:17 +01:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
sha256 = "10p7rg569rk3qvzs5kjj17894bqlsg3ihhbln6ciwwfhkfq1kpja";
|
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ pytest testfixtures ];
|
|
|
|
# X's in pytest are git tests which won't run in sandbox
|
|
|
|
checkPhase = ''
|
|
|
|
pytest tests/ -k 'not usage_string_fork'
|
2020-11-01 23:39:49 +01:00
|
|
|
'';
|
2020-02-13 21:24:17 +01:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-02-13 21:24:17 +01:00
|
|
|
description = "Version-bump your software with a single command";
|
|
|
|
longDescription = ''
|
2020-11-01 23:39:49 +01:00
|
|
|
A small command line tool to simplify releasing software by updating
|
2020-02-13 21:24:17 +01:00
|
|
|
all version strings in your source code by the correct increment.
|
|
|
|
'';
|
|
|
|
homepage = "https://github.com/c4urself/bump2version";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ jefflabonte ];
|
|
|
|
};
|
|
|
|
}
|