1{ lib, fetchPypi, buildPythonPackage, base58, ecdsa, pycryptodome, requests, six, setuptools }:
2
3buildPythonPackage rec {
4 pname = "block-io";
5 version = "2.0.5";
6
7 src = fetchPypi {
8 inherit pname version;
9 sha256 = "af70c3be444f2f2d07c0603cef547b51bbd9f4fbd4aadebd8f1e8ee73ccbc5e5";
10 };
11
12 propagatedBuildInputs = [
13 base58
14 ecdsa
15 pycryptodome
16 requests
17 six
18 setuptools
19 ];
20
21 preConfigure = ''
22 substituteInPlace setup.py \
23 --replace "ecdsa==0.15" "ecdsa>=0.15" \
24 --replace "base58==1.0.3" "base58>=1.0.3"
25 '';
26
27 # Tests needs a BlockIO API key to run properly
28 # https://github.com/BlockIo/block_io-python/blob/79006bc8974544b70a2d8e9f19c759941d32648e/test.py#L18
29 doCheck = false;
30
31 pythonImportsCheck = [ "block_io" ];
32
33 meta = with lib; {
34 description = "Integrate Bitcoin, Dogecoin and Litecoin in your Python applications using block.io";
35 homepage = "https://github.com/BlockIo/block_io-python";
36 license = licenses.mit;
37 maintainers = with maintainers; [ nyanloutre ];
38 };
39}