python314Packages.bitcoinrpc: fix build, modernize (#511017)

This commit is contained in:
Fabian Affolter
2026-04-20 12:11:48 +00:00
committed by GitHub
@@ -4,29 +4,38 @@
buildPythonPackage,
orjson,
httpx,
setuptools,
typing-extensions,
pytestCheckHook,
pytest-asyncio,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "bitcoinrpc";
version = "0.7.0";
format = "setuptools";
pyproject = true;
src = fetchFromGitHub {
owner = "bibajz";
repo = "bitcoin-python-async-rpc";
tag = "v${version}";
tag = "v${finalAttrs.version}";
hash = "sha256-QrLAhX2OZNP6k6TZ7OkD9phQidsExbep8MxWxQpqAU8=";
};
propagatedBuildInputs = [
build-system = [ setuptools ];
dependencies = [
orjson
httpx
typing-extensions
];
nativeCheckInputs = [ pytestCheckHook ];
nativeCheckInputs = [
pytestCheckHook
pytest-asyncio
];
disabledTestPaths = [ "tests/test_connection.py" ];
pythonImportsCheck = [ "bitcoinrpc" ];
@@ -36,4 +45,4 @@ buildPythonPackage rec {
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
}
})