1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pytestCheckHook, 6 pythonOlder, 7 setuptools, 8 testfixtures, 9}: 10 11buildPythonPackage rec { 12 pname = "bump2version"; 13 version = "1.0.1"; 14 pyproject = true; 15 16 disabled = pythonOlder "3.6"; 17 18 src = fetchFromGitHub { 19 owner = "c4urself"; 20 repo = "bump2version"; 21 tag = "v${version}"; 22 sha256 = "sha256-j6HKi3jTwSgGBrA8PCJJNg+yQqRMo1aqaLgPGf4KAKU="; 23 }; 24 25 build-system = [ setuptools ]; 26 27 nativeCheckInputs = [ 28 pytestCheckHook 29 testfixtures 30 ]; 31 32 disabledTests = [ 33 # X's in pytest are git tests which won't run in sandbox 34 "usage_string_fork" 35 "test_usage_string" 36 "test_defaults_in_usage_with_config" 37 ]; 38 39 pythonImportsCheck = [ "bumpversion" ]; 40 41 meta = with lib; { 42 description = "Version-bump your software with a single command"; 43 longDescription = '' 44 A small command line tool to simplify releasing software by updating 45 all version strings in your source code by the correct increment. 46 ''; 47 homepage = "https://github.com/c4urself/bump2version"; 48 changelog = "https://github.com/c4urself/bump2version/blob/v${version}/CHANGELOG.md"; 49 license = licenses.mit; 50 maintainers = with maintainers; [ jefflabonte ]; 51 }; 52}