bump2version: 1.0.0 -> 1.0.1

authored by

Fabian Affolter and committed by
Martin Weinelt
e44bb984 0e704fa6

+25 -10
+25 -10
pkgs/applications/version-management/git-and-tools/bump2version/default.nix
··· 1 - { buildPythonApplication, fetchFromGitHub, isPy27, pytest, testfixtures, lib }: 1 + { lib 2 + , buildPythonApplication 3 + , fetchFromGitHub 4 + , pytestCheckHook 5 + , pythonOlder 6 + , testfixtures 7 + }: 2 8 3 9 buildPythonApplication rec { 4 10 pname = "bump2version"; 5 - version = "1.0.0"; 6 - disabled = isPy27; 11 + version = "1.0.1"; 12 + 13 + disabled = pythonOlder "3.6"; 7 14 8 15 src = fetchFromGitHub { 9 16 owner = "c4urself"; 10 17 repo = pname; 11 - rev = "refs/tags/v${version}"; 12 - sha256 = "10p7rg569rk3qvzs5kjj17894bqlsg3ihhbln6ciwwfhkfq1kpja"; 18 + rev = "v${version}"; 19 + sha256 = "sha256-j6HKi3jTwSgGBrA8PCJJNg+yQqRMo1aqaLgPGf4KAKU="; 13 20 }; 14 21 15 - checkInputs = [ pytest testfixtures ]; 16 - # X's in pytest are git tests which won't run in sandbox 17 - checkPhase = '' 18 - pytest tests/ -k 'not usage_string_fork' 19 - ''; 22 + checkInputs = [ 23 + pytestCheckHook 24 + testfixtures 25 + ]; 26 + 27 + disabledTests = [ 28 + # X's in pytest are git tests which won't run in sandbox 29 + "usage_string_fork" 30 + "test_usage_string" 31 + "test_defaults_in_usage_with_config" 32 + ]; 33 + 34 + pythonImportsCheck = [ "bumpversion" ]; 20 35 21 36 meta = with lib; { 22 37 description = "Version-bump your software with a single command";