diff options
author | Jeff Labonte <jeff.labonte12@gmail.com> | 2020-02-13 15:24:17 -0500 |
---|---|---|
committer | Jon <jonringer@users.noreply.github.com> | 2020-02-14 16:46:15 -0800 |
commit | ebf01d561401494f4539306e8a7d5c3f21e9b4ba (patch) | |
tree | 9e7552e09bf132591eca39cf43f110908ad17f11 /pkgs/applications/version-management/git-and-tools/bump2version | |
parent | 6dca90784ae865d815cb1a91d9a34661e638576b (diff) | |
download | nixlib-ebf01d561401494f4539306e8a7d5c3f21e9b4ba.tar nixlib-ebf01d561401494f4539306e8a7d5c3f21e9b4ba.tar.gz nixlib-ebf01d561401494f4539306e8a7d5c3f21e9b4ba.tar.bz2 nixlib-ebf01d561401494f4539306e8a7d5c3f21e9b4ba.tar.lz nixlib-ebf01d561401494f4539306e8a7d5c3f21e9b4ba.tar.xz nixlib-ebf01d561401494f4539306e8a7d5c3f21e9b4ba.tar.zst nixlib-ebf01d561401494f4539306e8a7d5c3f21e9b4ba.zip |
gitAndTools.bump2version: init at 1.0.0
Diffstat (limited to 'pkgs/applications/version-management/git-and-tools/bump2version')
-rw-r--r-- | pkgs/applications/version-management/git-and-tools/bump2version/default.nix | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/applications/version-management/git-and-tools/bump2version/default.nix b/pkgs/applications/version-management/git-and-tools/bump2version/default.nix new file mode 100644 index 000000000000..69b44625f95a --- /dev/null +++ b/pkgs/applications/version-management/git-and-tools/bump2version/default.nix @@ -0,0 +1,31 @@ +{ stdenv, buildPythonApplication, fetchFromGitHub, isPy27, pytest, testfixtures, lib }: + +buildPythonApplication rec { + pname = "bump2version"; + version = "1.0.0"; + disabled = isPy27; + + src = fetchFromGitHub { + owner = "c4urself"; + repo = "${pname}"; + 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' + ''; + + 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 + all version strings in your source code by the correct increment. + ''; + homepage = "https://github.com/c4urself/bump2version"; + license = licenses.mit; + maintainers = with maintainers; [ jefflabonte ]; + }; +} |