1{ stdenv, fetchPypi, fetchpatch, buildPythonPackage, base58, ecdsa, pycryptodome, requests, six }:
2
3buildPythonPackage rec {
4 pname = "block-io";
5 version = "1.1.9";
6
7 src = fetchPypi {
8 inherit pname version;
9 sha256 = "4909d58b32ab7f93d3cd83fa4bbe4edef42ab7566f016bdb6a405a0d8b1907c9";
10 };
11
12 patches = [
13 (fetchpatch {
14 url = "https://github.com/BlockIo/block_io-python/commit/8ec0a0cd1afcfcb439d6dc306d8497dd9e4a0993.patch";
15 sha256 = "1i6c153wvkr5ncm3cpn34faxvavz534x5kndwn4adlaxlzq30snn";
16 })
17 ];
18
19 propagatedBuildInputs = [
20 base58
21 ecdsa
22 pycryptodome
23 requests
24 six
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 meta = with stdenv.lib; {
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}