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