nixpkgs/pkgs/applications/version-management/bump2version/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

47 lines
1.1 KiB
Nix
Raw Normal View History

2021-09-01 11:50:24 +00:00
{ lib
, buildPythonApplication
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
, testfixtures
}:
buildPythonApplication rec {
pname = "bump2version";
2021-09-01 11:50:24 +00:00
version = "1.0.1";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "c4urself";
repo = pname;
2021-09-01 11:50:24 +00:00
rev = "v${version}";
sha256 = "sha256-j6HKi3jTwSgGBrA8PCJJNg+yQqRMo1aqaLgPGf4KAKU=";
};
nativeCheckInputs = [
2021-09-01 11:50:24 +00:00
pytestCheckHook
testfixtures
];
disabledTests = [
# X's in pytest are git tests which won't run in sandbox
"usage_string_fork"
"test_usage_string"
"test_defaults_in_usage_with_config"
];
pythonImportsCheck = [ "bumpversion" ];
meta = with 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 ];
};
}