depot/third_party/nixpkgs/pkgs/development/python-modules/bitcoinrpc/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

42 lines
819 B
Nix

{
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
];
nativeCheckInputs = [ 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 ];
};
}