Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 fetchpatch, 6 7 poetry-core, 8 9 aiohttp, 10 googleapis-common-protos, 11 grpcio, 12 protobuf, 13 requests, 14 semver, 15 toposort, 16 17 #, async_exit_stack 18 #, dataclasses 19 google-auth, 20 oauthlib, 21 prometheus-client, 22 pygments, 23 pyopenssl, 24 typing-extensions, 25}: 26 27buildPythonPackage rec { 28 pname = "dazl"; 29 version = "7.11.0"; 30 31 src = fetchPypi { 32 inherit pname version; 33 hash = "sha256-IErym/Fd8G75NOa+xOyV87UNmEaB31XPvg8GWCSP7k8="; 34 }; 35 36 patches = [ 37 # Merged, remove this next release 38 (fetchpatch { 39 name = "428.patch"; # https://github.com/digital-asset/dazl-client/pull/428 40 url = "https://github.com/digital-asset/dazl-client/commit/a68bad0471d22210f0abf31447a7732477de39d4.patch"; 41 sha256 = "sha256-Gx9W1XkvMPg8FAOAXijDF5QnMbntk5mR0q5+o5i2KAE="; 42 }) 43 ]; 44 45 format = "pyproject"; 46 47 nativeBuildInputs = [ poetry-core ]; 48 49 propagatedBuildInputs = [ 50 aiohttp 51 googleapis-common-protos 52 grpcio 53 protobuf 54 requests 55 semver 56 toposort 57 58 # optional 59 60 #async-exit-stack 61 #dataclasses 62 google-auth 63 oauthlib 64 prometheus-client 65 pygments 66 pyopenssl 67 typing-extensions 68 ]; 69 70 meta = with lib; { 71 description = "High-level Ledger API client for Daml ledgers"; 72 license = licenses.asl20; 73 }; 74}