1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 mock,
6 pytestCheckHook,
7 pythonOlder,
8 six,
9}:
10
11buildPythonPackage rec {
12 pname = "configobj";
13 version = "5.0.9";
14 format = "setuptools";
15
16 disabled = pythonOlder "3.7";
17
18 src = fetchFromGitHub {
19 owner = "DiffSK";
20 repo = "configobj";
21 tag = "v${version}";
22 hash = "sha256-duPCGBaHCXp4A6ZHLnyL1SZtR7K4FJ4hs5wCE1V9WB4=";
23 };
24
25 propagatedBuildInputs = [ six ];
26
27 nativeCheckInputs = [ pytestCheckHook ];
28
29 checkInputs = [ mock ];
30
31 pythonImportsCheck = [ "configobj" ];
32
33 meta = with lib; {
34 description = "Config file reading, writing and validation";
35 homepage = "https://github.com/DiffSK/configobj";
36 changelog = "https://github.com/DiffSK/configobj/blob/v${version}/CHANGES.rst";
37 license = licenses.bsd3;
38 maintainers = [ ];
39 };
40}