jenkins: 2.479.3 -> 2.492.1
[NixPkgs.git] / pkgs / by-name / bu / bumpver / package.nix
blobb28a533f19ca3576ca9e1a5055bc1f6d9a77b4b9
2   lib,
3   python3,
4   fetchPypi,
5   git,
6   mercurial,
7 }:
9 python3.pkgs.buildPythonApplication rec {
10   pname = "bumpver";
11   version = "2021.1110";
13   src = fetchPypi {
14     inherit pname version;
15     sha256 = "b6a0ddb78db7e00ae7ffe895bf8ef97f91e6310dfc1c4721896bdfd044b1cb03";
16   };
18   prePatch = ''
19     substituteInPlace setup.py \
20       --replace "if any(arg.startswith(\"bdist\") for arg in sys.argv):" ""\
21       --replace "import lib3to6" ""\
22       --replace "package_dir = lib3to6.fix(package_dir)" ""
23   '';
25   propagatedBuildInputs = with python3.pkgs; [
26     pathlib2
27     click
28     toml
29     lexid
30     colorama
31     setuptools
32   ];
34   nativeCheckInputs = [
35     python3.pkgs.pytestCheckHook
36     git
37     mercurial
38   ];
40   disabledTests = [
41     # fails due to more aggressive setuptools version specifier validation
42     "test_parse_default_pattern"
43   ];
45   meta = with lib; {
46     description = "Bump version numbers in project files";
47     homepage = "https://pypi.org/project/bumpver/";
48     license = licenses.mit;
49     maintainers = with maintainers; [ kfollesdal ];
50     mainProgram = "bumpver";
51   };