nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 fetchFromGitHub,
4 buildPythonPackage,
5 setuptools,
6 setuptools-scm,
7 pytestCheckHook,
8}:
9
10buildPythonPackage rec {
11 pname = "pystache";
12 version = "0.6.8";
13 pyproject = true;
14
15 src = fetchFromGitHub {
16 owner = "PennyDreadfulMTG";
17 repo = "pystache";
18 tag = "v${version}";
19 hash = "sha256-UVmDpg7wCPnY+1BZqujIYdgt/AT4gZ+RTYdD+ORQhzE=";
20 };
21
22 build-system = [
23 setuptools
24 setuptools-scm
25 ];
26
27 nativeCheckInputs = [ pytestCheckHook ];
28
29 pythonImportsCheck = [ "pystache" ];
30
31 meta = {
32 description = "Framework-agnostic, logic-free templating system inspired by ctemplate and et";
33 homepage = "https://github.com/PennyDreadfulMTG/pystache";
34 license = lib.licenses.mit;
35 maintainers = [ lib.maintainers.nickcao ];
36 };
37}