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.13";
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-jd5C8whfdLuEC+ebDAAYso33o2H963P+8RWcm26koVM=";
22 };
23
24 build-system = [ 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/${src.tag}";
34 license = licenses.mit;
35 maintainers = with maintainers; [ fab ];
36 };
37}