2019-10-10 23:43:42 +01:00
|
|
|
{ stdenv, fetchPypi, buildPythonPackage, base58, ecdsa, pycryptodome, requests, six, setuptools }:
|
2018-06-26 15:28:36 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "block-io";
|
2020-06-05 18:44:33 +01:00
|
|
|
version = "1.1.13";
|
2018-06-26 15:28:36 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-06-05 18:44:33 +01:00
|
|
|
sha256 = "a45e31361d17ce272a0d563a689d6b87b65cc16e9348f8cd3a6460c93359b1bd";
|
2018-06-26 15:28:36 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
base58
|
|
|
|
ecdsa
|
|
|
|
pycryptodome
|
|
|
|
requests
|
|
|
|
six
|
2019-10-10 23:43:42 +01:00
|
|
|
setuptools
|
2018-06-26 15:28:36 +01:00
|
|
|
];
|
|
|
|
|
2019-05-11 08:12:19 +01:00
|
|
|
preConfigure = ''
|
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace "ecdsa==0.13" "ecdsa>=0.13"
|
|
|
|
'';
|
|
|
|
|
2018-06-26 15:28:36 +01:00
|
|
|
# Tests needs a BlockIO API key to run properly
|
|
|
|
# https://github.com/BlockIo/block_io-python/blob/79006bc8974544b70a2d8e9f19c759941d32648e/test.py#L18
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Integrate Bitcoin, Dogecoin and Litecoin in your Python applications using block.io";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/BlockIo/block_io-python";
|
2018-06-26 15:28:36 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ nyanloutre ];
|
|
|
|
};
|
|
|
|
}
|