diff --git a/pkgs/development/python-modules/bitcoinrpc/default.nix b/pkgs/development/python-modules/bitcoinrpc/default.nix index 5bf2f03077ce..5d94e8edf36c 100644 --- a/pkgs/development/python-modules/bitcoinrpc/default.nix +++ b/pkgs/development/python-modules/bitcoinrpc/default.nix @@ -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 ]; }; -} +})