2022-01-07 10:21:05 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
fetchPypi,
|
|
|
|
bitcoin-utils-fork-minimal,
|
|
|
|
buildPythonPackage,
|
|
|
|
base58,
|
|
|
|
pycryptodome,
|
|
|
|
requests,
|
|
|
|
setuptools,
|
|
|
|
pythonOlder,
|
|
|
|
}:
|
2018-06-26 14:28:36 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "block-io";
|
2022-09-14 21:36:04 +00:00
|
|
|
version = "2.0.6";
|
2024-08-12 01:59:22 +00:00
|
|
|
pyproject = true;
|
2022-01-07 10:21:05 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
2018-06-26 14:28:36 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-03-03 00:48:06 +00:00
|
|
|
hash = "sha256-M7czfpagXqoWWSu4enB3Z2hc2GtAaskI6cnJzJdpC8I=";
|
2018-06-26 14:28:36 +00:00
|
|
|
};
|
|
|
|
|
2024-08-12 01:59:22 +00:00
|
|
|
build-system = [ setuptools ];
|
|
|
|
|
|
|
|
pythonRelaxDeps = [ "base58" ];
|
|
|
|
|
|
|
|
dependencies = [
|
2018-06-26 14:28:36 +00:00
|
|
|
base58
|
2022-01-07 10:21:05 +00:00
|
|
|
bitcoin-utils-fork-minimal
|
2018-06-26 14:28:36 +00:00
|
|
|
pycryptodome
|
|
|
|
requests
|
2019-10-10 22:43:42 +00:00
|
|
|
setuptools
|
2018-06-26 14:28:36 +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;
|
|
|
|
|
2022-01-07 10:21:05 +00:00
|
|
|
pythonImportsCheck = [ "block_io" ];
|
2020-10-16 22:30:07 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-06-26 14:28:36 +00:00
|
|
|
description = "Integrate Bitcoin, Dogecoin and Litecoin in your Python applications using block.io";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/BlockIo/block_io-python";
|
2018-06-26 14:28:36 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ nyanloutre ];
|
|
|
|
};
|
|
|
|
}
|