tangled
alpha
login
or
join now
tjh.dev
/
nixpkgs
0
fork
atom
nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
0
fork
atom
overview
issues
pulls
pipelines
python3Packages.fluent-pygments: init at 1.0
GetPsyched
2 years ago
0f861fa4
feab5ab4
+53
2 changed files
expand all
collapse all
unified
split
pkgs
development
python-modules
python-fluent
fluent-pygments.nix
top-level
python-packages.nix
+51
pkgs/development/python-modules/python-fluent/fluent-pygments.nix
reviewed
···
1
1
+
{
2
2
+
buildPythonPackage,
3
3
+
fetchFromGitHub,
4
4
+
lib,
5
5
+
pytestCheckHook,
6
6
+
setuptools,
7
7
+
8
8
+
# dependencies
9
9
+
fluent-syntax,
10
10
+
pygments,
11
11
+
six,
12
12
+
}:
13
13
+
14
14
+
let
15
15
+
version = "1.0";
16
16
+
17
17
+
src = fetchFromGitHub {
18
18
+
owner = "projectfluent";
19
19
+
repo = "python-fluent";
20
20
+
rev = "fluent.pygments@${version}";
21
21
+
hash = "sha256-AR2uce3HS1ELzpoHmx7F/5/nrL+7KhYemw/00nmvLik=";
22
22
+
};
23
23
+
in
24
24
+
buildPythonPackage {
25
25
+
pname = "fluent-pygments";
26
26
+
inherit version;
27
27
+
pyproject = true;
28
28
+
29
29
+
inherit src;
30
30
+
sourceRoot = "${src.name}/fluent.pygments";
31
31
+
32
32
+
build-system = [ setuptools ];
33
33
+
34
34
+
dependencies = [
35
35
+
fluent-syntax
36
36
+
pygments
37
37
+
six
38
38
+
];
39
39
+
40
40
+
nativeCheckInputs = [ pytestCheckHook ];
41
41
+
42
42
+
pythonImportsCheck = [ "fluent.pygments" ];
43
43
+
44
44
+
meta = {
45
45
+
changelog = "https://github.com/projectfluent/python-fluent/blob/main/fluent.pygments/CHANGELOG.rst";
46
46
+
description = "Plugin for pygments to add syntax highlighting of Fluent files in Sphinx";
47
47
+
homepage = "https://projectfluent.org/python-fluent/fluent.pygments/${version}";
48
48
+
license = lib.licenses.asl20;
49
49
+
maintainers = with lib.maintainers; [ getpsyched ];
50
50
+
};
51
51
+
}
+2
pkgs/top-level/python-packages.nix
reviewed
···
4510
4510
4511
4511
fluent-logger = callPackage ../development/python-modules/fluent-logger { };
4512
4512
4513
4513
+
fluent-pygments = callPackage ../development/python-modules/python-fluent/fluent-pygments.nix { };
4514
4514
+
4513
4515
fluent-runtime = callPackage ../development/python-modules/python-fluent/fluent-runtime.nix { };
4514
4516
4515
4517
fluent-syntax = callPackage ../development/python-modules/python-fluent/fluent-syntax.nix { };