tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
python3Packages.chevron: modernize
Wolfgang Walther
11 months ago
9db9840a
cb9a1850
+11
-6
1 changed file
expand all
collapse all
unified
split
pkgs
development
python-modules
chevron
default.nix
+11
-6
pkgs/development/python-modules/chevron/default.nix
···
1
{
2
-
lib,
3
buildPythonPackage,
4
fetchFromGitHub,
0
5
python,
0
6
}:
7
8
buildPythonPackage {
9
pname = "chevron";
10
version = "0.14.0-unstable-2021-03-21";
11
-
format = "setuptools";
12
13
# No tests available in the PyPI tarball
14
src = fetchFromGitHub {
15
owner = "noahmorrison";
16
repo = "chevron";
17
rev = "5e1c12827b7fc3db30cb3b24cae9a7ee3092822b";
18
-
sha256 = "sha256-44cxkliJJ+IozmhS4ekbb+pCa7tcUuX9tRNYTK0mC+w=";
19
};
20
0
0
0
0
21
checkPhase = ''
22
${python.interpreter} test_spec.py
23
'';
24
25
-
meta = with lib; {
26
homepage = "https://github.com/noahmorrison/chevron";
27
description = "Python implementation of the mustache templating language";
28
mainProgram = "chevron";
29
-
license = licenses.mit;
30
-
maintainers = with maintainers; [ dhkl ];
31
};
32
}
···
1
{
0
2
buildPythonPackage,
3
fetchFromGitHub,
4
+
lib,
5
python,
6
+
setuptools,
7
}:
8
9
buildPythonPackage {
10
pname = "chevron";
11
version = "0.14.0-unstable-2021-03-21";
12
+
pyproject = true;
13
14
# No tests available in the PyPI tarball
15
src = fetchFromGitHub {
16
owner = "noahmorrison";
17
repo = "chevron";
18
rev = "5e1c12827b7fc3db30cb3b24cae9a7ee3092822b";
19
+
hash = "sha256-44cxkliJJ+IozmhS4ekbb+pCa7tcUuX9tRNYTK0mC+w=";
20
};
21
22
+
build-system = [
23
+
setuptools
24
+
];
25
+
26
checkPhase = ''
27
${python.interpreter} test_spec.py
28
'';
29
30
+
meta = {
31
homepage = "https://github.com/noahmorrison/chevron";
32
description = "Python implementation of the mustache templating language";
33
mainProgram = "chevron";
34
+
license = lib.licenses.mit;
35
+
maintainers = with lib.maintainers; [ dhkl ];
36
};
37
}