summaryrefslogtreecommitdiffstats
path: root/pkgs/development/python-modules/bitcoinrpc/default.nix
blob: 5d94e8edf36ca7300a9bf044f7f6a78b4d4f80c8 (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
{
  lib,
  fetchFromGitHub,
  buildPythonPackage,
  orjson,
  httpx,
  setuptools,
  typing-extensions,
  pytestCheckHook,
  pytest-asyncio,
}:

buildPythonPackage (finalAttrs: {
  pname = "bitcoinrpc";
  version = "0.7.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "bibajz";
    repo = "bitcoin-python-async-rpc";
    tag = "v${finalAttrs.version}";
    hash = "sha256-QrLAhX2OZNP6k6TZ7OkD9phQidsExbep8MxWxQpqAU8=";
  };

  build-system = [ setuptools ];

  dependencies = [
    orjson
    httpx
    typing-extensions
  ];

  nativeCheckInputs = [
    pytestCheckHook
    pytest-asyncio
  ];

  disabledTestPaths = [ "tests/test_connection.py" ];

  pythonImportsCheck = [ "bitcoinrpc" ];

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