blob: a84e03025b124688c37e51d79669492843722b9d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
{
lib,
stdenv,
buildPythonPackage,
cargo,
fetchFromGitHub,
openssl,
pkg-config,
rustc,
rustPlatform,
}:
buildPythonPackage rec {
pname = "typst";
version = "0.14.5";
pyproject = true;
src = fetchFromGitHub {
owner = "messense";
repo = "typst-py";
tag = "v${version}";
hash = "sha256-Slo9cstmh9ZjxcqVdRldU+n82JK1cGf89cHE9Rrh7z0=";
};
cargoDeps = rustPlatform.fetchCargoVendor {
inherit pname version src;
hash = "sha256-haEthOKjyQkHhPgYPo40uLjfv29BDCC084KWmGRwkVk=";
};
build-system = [
cargo
pkg-config
rustPlatform.cargoSetupHook
rustPlatform.maturinBuildHook
rustc
];
buildInputs = [ openssl ];
pythonImportsCheck = [ "typst" ];
env = {
OPENSSL_NO_VENDOR = true;
};
# Module has no tests
doCheck = false;
meta = {
description = "Python binding to typst";
homepage = "https://github.com/messense/typst-py";
changelog = "https://github.com/messense/typst-py/releases/tag/v${src.tag}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ fab ];
};
}
|