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 format = "setuptools";
17
18 disabled = pythonOlder "3.6";
19
20 src = fetchPypi {
21 inherit pname version;
22 hash = "sha256-M7czfpagXqoWWSu4enB3Z2hc2GtAaskI6cnJzJdpC8I=";
23 };
24
25 propagatedBuildInputs = [
26 base58
27 bitcoin-utils-fork-minimal
28 pycryptodome
29 requests
30 setuptools
31 ];
32
33 preConfigure = ''
34 substituteInPlace setup.py \
35 --replace "base58==2.1.0" "base58>=2.1.0"
36 '';
37
38 # Tests needs a BlockIO API key to run properly
39 # https://github.com/BlockIo/block_io-python/blob/79006bc8974544b70a2d8e9f19c759941d32648e/test.py#L18
40 doCheck = false;
41
42 pythonImportsCheck = [ "block_io" ];
43
44 meta = with lib; {
45 description = "Integrate Bitcoin, Dogecoin and Litecoin in your Python applications using block.io";
46 homepage = "https://github.com/BlockIo/block_io-python";
47 license = licenses.mit;
48 maintainers = with maintainers; [ nyanloutre ];
49 };
50}