1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pythonOlder, 6 setuptools, 7 unittestCheckHook, 8}: 9 10buildPythonPackage rec { 11 pname = "gitignore-parser"; 12 version = "0.1.12"; 13 pyproject = true; 14 15 disabled = pythonOlder "3.7"; 16 17 src = fetchFromGitHub { 18 owner = "mherrmann"; 19 repo = "gitignore_parser"; 20 tag = "v${version}"; 21 hash = "sha256-s1t7WTrtxeeL4we+Y8I6XK8vKzmDVftmtXhRS/XeSAM="; 22 }; 23 24 nativeBuildInputs = [ setuptools ]; 25 26 nativeCheckInputs = [ unittestCheckHook ]; 27 28 pythonImportsCheck = [ "gitignore_parser" ]; 29 30 meta = with lib; { 31 description = "Spec-compliant gitignore parser"; 32 homepage = "https://github.com/mherrmann/gitignore_parser"; 33 changelog = "https://github.com/mherrmann/gitignore_parser/releases/tag/v${version}"; 34 license = licenses.mit; 35 maintainers = with maintainers; [ fab ]; 36 }; 37}