Update aider (#375634)
[NixPkgs.git] / pkgs / development / python-modules / pycardano / default.nix
blob973b84f4c035f46254e8a60e9f1bc785d4f19fdc
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   # Python deps
6   blockfrost-python,
7   cachetools,
8   cbor2,
9   cose,
10   docker,
11   ecpy,
12   frozendict,
13   frozenlist,
14   mnemonic,
15   poetry-core,
16   pprintpp,
17   pynacl,
18   setuptools,
19   typeguard,
20   websocket-client,
23 let
24   cose_0_9_dev8 = cose.overridePythonAttrs (old: rec {
25     version = "0.9.dev8";
26     src = (
27       old.src.override {
28         rev = "v${version}";
29         hash = "sha256-/jwq2C2nvHInsgPG4jZCr+XsvlUJdYewAkasrUPVaHM=";
30       }
31     );
32     pythonImportsCheck = [ "cose" ];
33   });
35 buildPythonPackage rec {
36   pname = "pycardano";
37   version = "0.11.1";
39   format = "pyproject";
41   src = fetchFromGitHub {
42     owner = "Python-Cardano";
43     repo = "pycardano";
44     rev = "v${version}";
45     hash = "sha256-OWm6ztt3s3DUbxDZqpvwTO6XwdY/57AI6Bc6x6kxH7k=";
46   };
48   propagatedBuildInputs = [
49     blockfrost-python
50     cachetools
51     cbor2
52     cose_0_9_dev8
53     docker
54     ecpy
55     frozendict
56     frozenlist
57     mnemonic
58     poetry-core
59     pprintpp
60     pynacl
61     setuptools
62     typeguard
63     websocket-client
64   ];
66   pythonRelaxDeps = [ "typeguard" ];
68   pythonImportsCheck = [ "pycardano" ];
70   meta = with lib; {
71     description = "Lightweight Cardano library in Python";
72     homepage = "https://github.com/Python-Cardano/pycardano";
73     license = licenses.mit;
74     maintainers = with maintainers; [ t4ccer ];
75   };