3
0
Fork 0
forked from mirrors/nixpkgs

python3Packages.bitcoinrpc: init at 0.5.0

This commit is contained in:
Fabian Affolter 2022-01-07 11:03:34 +01:00
parent 5bc97cf9b3
commit 465d38d53a
2 changed files with 47 additions and 0 deletions

View file

@ -0,0 +1,45 @@
{ lib
, fetchFromGitHub
, buildPythonPackage
, orjson
, httpx
, typing-extensions
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "bitcoinrpc";
version = "0.5.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "bibajz";
repo = "bitcoin-python-async-rpc";
rev = "v${version}";
hash = "sha256-uxkSz99X9ior7l825PaXGIC5XJzO/Opv0vTyY1ixvxU=";
};
propagatedBuildInputs = [
orjson
httpx
typing-extensions
];
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"bitcoinrpc"
];
meta = with lib; {
description = "Bitcoin JSON-RPC client";
homepage = "https://github.com/bibajz/bitcoin-python-async-rpc";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}

View file

@ -1200,6 +1200,8 @@ in {
bitcoin-price-api = callPackage ../development/python-modules/bitcoin-price-api { };
bitcoinrpc = callPackage ../development/python-modules/bitcoinrpc { };
bitlist = callPackage ../development/python-modules/bitlist { };
bitmath = callPackage ../development/python-modules/bitmath { };