about summary refs log tree commit diff
path: root/pkgs/development/python-modules/bitcoinrpc/default.nix
blob: 65c05c01991b6f0a6934f7af3aaa9a81d59d862d (plain) (blame)
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
{ lib
, fetchFromGitHub
, buildPythonPackage
, orjson
, httpx
, typing-extensions
, pytestCheckHook
, pythonOlder
}:

buildPythonPackage rec {
  pname = "bitcoinrpc";
  version = "0.5.0";
  format = "setuptools";

  disabled = pythonOlder "3.7";

  src = fetchFromGitHub {
    owner = "bibajz";
    repo = "bitcoin-python-async-rpc";
    rev = "v${version}";
    hash = "sha256-uxkSz99X9ior7l825PaXGIC5XJzO/Opv0vTyY1ixvxU=";
  };

  propagatedBuildInputs = [
    orjson
    httpx
    typing-extensions
  ];

  nativeCheckInputs = [
    pytestCheckHook
  ];

  pythonImportsCheck = [
    "bitcoinrpc"
  ];

  meta = with lib; {
    description = "Bitcoin JSON-RPC client";
    homepage = "https://github.com/bibajz/bitcoin-python-async-rpc";
    license = licenses.mit;
    maintainers = with maintainers; [ fab ];
  };
}