at master 1.1 kB view raw
1{ 2 buildPythonPackage, 3 fetchFromGitHub, 4 lib, 5 pytestCheckHook, 6 setuptools, 7 8 # dependencies 9 fluent-syntax, 10 pygments, 11 six, 12}: 13 14let 15 version = "1.0"; 16 17 src = fetchFromGitHub { 18 owner = "projectfluent"; 19 repo = "python-fluent"; 20 rev = "fluent.pygments@${version}"; 21 hash = "sha256-AR2uce3HS1ELzpoHmx7F/5/nrL+7KhYemw/00nmvLik="; 22 }; 23in 24buildPythonPackage { 25 pname = "fluent-pygments"; 26 inherit version; 27 pyproject = true; 28 29 inherit src; 30 sourceRoot = "${src.name}/fluent.pygments"; 31 32 build-system = [ setuptools ]; 33 34 dependencies = [ 35 fluent-syntax 36 pygments 37 six 38 ]; 39 40 nativeCheckInputs = [ pytestCheckHook ]; 41 42 pythonImportsCheck = [ "fluent.pygments" ]; 43 44 meta = { 45 changelog = "https://github.com/projectfluent/python-fluent/blob/main/fluent.pygments/CHANGELOG.rst"; 46 description = "Plugin for pygments to add syntax highlighting of Fluent files in Sphinx"; 47 homepage = "https://projectfluent.org/python-fluent/fluent.pygments/${version}"; 48 license = lib.licenses.asl20; 49 maintainers = with lib.maintainers; [ getpsyched ]; 50 }; 51}