2021-02-05 17:12:51 +00:00
|
|
|
{ lib, fetchPypi, buildPythonPackage, base58, ecdsa, pycryptodome, requests, six, setuptools }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "block-io";
|
2020-09-25 04:45:31 +00:00
|
|
|
version = "1.1.15";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-09-25 04:45:31 +00:00
|
|
|
sha256 = "97ea037a67af72037cb08cec7e0a9f7866ecdfaa1a8c8ebcc0f4b9359a1516d7";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
base58
|
|
|
|
ecdsa
|
|
|
|
pycryptodome
|
|
|
|
requests
|
|
|
|
six
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
substituteInPlace setup.py \
|
2020-12-07 07:45:13 +00:00
|
|
|
--replace "ecdsa==0.15" "ecdsa>=0.15" \
|
2020-10-19 09:53:12 +00:00
|
|
|
--replace "base58==1.0.3" "base58>=1.0.3"
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
# Tests needs a BlockIO API key to run properly
|
|
|
|
# https://github.com/BlockIo/block_io-python/blob/79006bc8974544b70a2d8e9f19c759941d32648e/test.py#L18
|
|
|
|
doCheck = false;
|
|
|
|
|
2020-10-19 09:53:12 +00:00
|
|
|
pythonImportsCheck = [ "block_io" ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|