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.8"; 14 format = "setuptools"; 15 16 disabled = pythonOlder "3.7"; 17 18 src = fetchFromGitHub { 19 owner = "DiffSK"; 20 repo = pname; 21 rev = "refs/tags/v${version}"; 22 hash = "sha256-t3Q0FEBibkAM5PAG4fjXwNH/71RqSSDj/Mn27ri0iDU="; 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 = with maintainers; [ ]; 39 }; 40}