1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 poetry-core,
6 googleapis-common-protos,
7 grpcio,
8 protobuf,
9 semver,
10 pygments,
11 pyopenssl,
12 typing-extensions,
13 pytestCheckHook,
14 pyyaml,
15}:
16
17buildPythonPackage rec {
18 pname = "dazl";
19 version = "8.4.3";
20 pyproject = true;
21
22 src = fetchFromGitHub {
23 owner = "digital-asset";
24 repo = "dazl-client";
25 tag = "v${version}";
26 hash = "sha256-WWszy5hswDX2CA3vT5k08r8XVTe+pmrGz0JO8irCTYM=";
27 };
28
29 pythonRelaxDeps = [
30 "grpcio"
31 ];
32
33 build-system = [ poetry-core ];
34
35 dependencies = [
36 googleapis-common-protos
37 grpcio
38 protobuf
39 semver
40 typing-extensions
41 ];
42
43 optional-dependencies = {
44 pygments = [ pygments ];
45 tls-testing = [ pyopenssl ];
46 };
47
48 pythonImportsCheck = [ "dazl" ];
49
50 # daml: command not found
51 doCheck = false;
52
53 nativeCheckInputs = [
54 pytestCheckHook
55 pyyaml
56 ];
57
58 meta = {
59 description = "High-level Ledger API client for Daml ledgers";
60 license = lib.licenses.asl20;
61 homepage = "https://github.com/digital-asset/dazl-client";
62 changelog = "https://github.com/digital-asset/dazl-client/releases/tag/${src.tag}";
63 };
64}