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