1{
2 lib,
3 fetchPypi,
4 bitcoin-utils-fork-minimal,
5 buildPythonPackage,
6 base58,
7 pycryptodome,
8 requests,
9 setuptools,
10 pythonOlder,
11}:
12
13buildPythonPackage rec {
14 pname = "block-io";
15 version = "2.0.6";
16 pyproject = true;
17
18 disabled = pythonOlder "3.6";
19
20 src = fetchPypi {
21 inherit pname version;
22 hash = "sha256-M7czfpagXqoWWSu4enB3Z2hc2GtAaskI6cnJzJdpC8I=";
23 };
24
25 build-system = [ setuptools ];
26
27 pythonRelaxDeps = [ "base58" ];
28
29 dependencies = [
30 base58
31 bitcoin-utils-fork-minimal
32 pycryptodome
33 requests
34 setuptools
35 ];
36
37 # Tests needs a BlockIO API key to run properly
38 # https://github.com/BlockIo/block_io-python/blob/79006bc8974544b70a2d8e9f19c759941d32648e/test.py#L18
39 doCheck = false;
40
41 pythonImportsCheck = [ "block_io" ];
42
43 meta = with lib; {
44 description = "Integrate Bitcoin, Dogecoin and Litecoin in your Python applications using block.io";
45 homepage = "https://github.com/BlockIo/block_io-python";
46 license = licenses.mit;
47 maintainers = with maintainers; [ nyanloutre ];
48 };
49}