bump2version: 1.0.0 -> 1.0.1
This commit is contained in:
parent
0e704fa628
commit
e44bb98416
1 changed files with 25 additions and 10 deletions
|
@ -1,22 +1,37 @@
|
|||
{ buildPythonApplication, fetchFromGitHub, isPy27, pytest, testfixtures, lib }:
|
||||
{ lib
|
||||
, buildPythonApplication
|
||||
, fetchFromGitHub
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, testfixtures
|
||||
}:
|
||||
|
||||
buildPythonApplication rec {
|
||||
pname = "bump2version";
|
||||
version = "1.0.0";
|
||||
disabled = isPy27;
|
||||
version = "1.0.1";
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "c4urself";
|
||||
repo = pname;
|
||||
rev = "refs/tags/v${version}";
|
||||
sha256 = "10p7rg569rk3qvzs5kjj17894bqlsg3ihhbln6ciwwfhkfq1kpja";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-j6HKi3jTwSgGBrA8PCJJNg+yQqRMo1aqaLgPGf4KAKU=";
|
||||
};
|
||||
|
||||
checkInputs = [ pytest testfixtures ];
|
||||
# X's in pytest are git tests which won't run in sandbox
|
||||
checkPhase = ''
|
||||
pytest tests/ -k 'not usage_string_fork'
|
||||
'';
|
||||
checkInputs = [
|
||||
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";
|
||||
|
|
Loading…
Reference in a new issue