1{
2 lib,
3 buildPythonPackage,
4 coloredlogs,
5 executor,
6 fetchFromGitHub,
7 humanfriendly,
8 naturalsort,
9 property-manager,
10 pytestCheckHook,
11 pythonOlder,
12 six,
13}:
14
15buildPythonPackage rec {
16 pname = "update-dotdee";
17 version = "6.0";
18 format = "setuptools";
19
20 disabled = pythonOlder "3.7";
21
22 src = fetchFromGitHub {
23 owner = "xolox";
24 repo = "python-update-dotdee";
25 rev = version;
26 hash = "sha256-2k7FdgWM0ESHQb2za87yhXGaR/rbMYLVcv10QexUH1A=";
27 };
28
29 propagatedBuildInputs = [
30 coloredlogs
31 executor
32 humanfriendly
33 naturalsort
34 property-manager
35 six
36 ];
37
38 nativeCheckInputs = [ pytestCheckHook ];
39
40 postPatch = ''
41 substituteInPlace tox.ini \
42 --replace " --cov --showlocals --verbose" ""
43 '';
44
45 pythonImportsCheck = [ "update_dotdee" ];
46
47 disabledTests = [
48 # TypeError: %o format: an integer is required, not str
49 "test_executable"
50 ];
51
52 meta = with lib; {
53 description = "Generic modularized configuration file manager";
54 mainProgram = "update-dotdee";
55 homepage = "https://github.com/xolox/python-update-dotdee";
56 license = licenses.mit;
57 maintainers = with maintainers; [ eyjhb ];
58 };
59}