Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, fetchFromGitHub 3, buildPythonPackage 4, orjson 5, httpx 6, typing-extensions 7, pytestCheckHook 8, pythonOlder 9}: 10 11buildPythonPackage rec { 12 pname = "bitcoinrpc"; 13 version = "0.5.0"; 14 format = "setuptools"; 15 16 disabled = pythonOlder "3.7"; 17 18 src = fetchFromGitHub { 19 owner = "bibajz"; 20 repo = "bitcoin-python-async-rpc"; 21 rev = "v${version}"; 22 hash = "sha256-uxkSz99X9ior7l825PaXGIC5XJzO/Opv0vTyY1ixvxU="; 23 }; 24 25 propagatedBuildInputs = [ 26 orjson 27 httpx 28 typing-extensions 29 ]; 30 31 nativeCheckInputs = [ 32 pytestCheckHook 33 ]; 34 35 pythonImportsCheck = [ 36 "bitcoinrpc" 37 ]; 38 39 meta = with lib; { 40 description = "Bitcoin JSON-RPC client"; 41 homepage = "https://github.com/bibajz/bitcoin-python-async-rpc"; 42 license = licenses.mit; 43 maintainers = with maintainers; [ fab ]; 44 }; 45}