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