1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 flit-core,
6 pygments,
7 pytestCheckHook,
8}:
9
10buildPythonPackage rec {
11 pname = "ipython-pygments-lexers";
12 version = "1.1.1";
13 pyproject = true;
14
15 src = fetchFromGitHub {
16 owner = "ipython";
17 repo = "ipython-pygments-lexers";
18 tag = version;
19 hash = "sha256-p2WrFvCzHOuxPec9Wc1/xT6+fEUdcdDC1HTNmu5dm5Q=";
20 };
21
22 build-system = [ flit-core ];
23
24 dependencies = [ pygments ];
25
26 nativeCheckInputs = [ pytestCheckHook ];
27
28 pythonImportsCheck = [ "ipython_pygments_lexers" ];
29
30 meta = {
31 description = "Pygments lexers for syntax-highlighting IPython code & sessions";
32 homepage = "https://github.com/ipython/ipython-pygments-lexers";
33 changelog = "https://github.com/ipython/ipython-pygments-lexers/releases/tag/${src.tag}";
34 license = lib.licenses.bsd3;
35 maintainers = with lib.maintainers; [ fab ];
36 };
37}