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