1{ stdenv, fetchPypi, buildPythonPackage, base58, ecdsa, pycryptodome, requests, six, setuptools }:
2
3buildPythonPackage rec {
4 pname = "block-io";
5 version = "1.1.15";
6
7 src = fetchPypi {
8 inherit pname version;
9 sha256 = "97ea037a67af72037cb08cec7e0a9f7866ecdfaa1a8c8ebcc0f4b9359a1516d7";
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.13" "ecdsa>=0.13"
24 '';
25
26 # Tests needs a BlockIO API key to run properly
27 # https://github.com/BlockIo/block_io-python/blob/79006bc8974544b70a2d8e9f19c759941d32648e/test.py#L18
28 doCheck = false;
29
30 meta = with stdenv.lib; {
31 broken = true;
32 description = "Integrate Bitcoin, Dogecoin and Litecoin in your Python applications using block.io";
33 homepage = "https://github.com/BlockIo/block_io-python";
34 license = licenses.mit;
35 maintainers = with maintainers; [ nyanloutre ];
36 };
37}