Unverified Commit e3f8e234 authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

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

parents 77acdadf fd9559e0
Loading
Loading
Loading
Loading
+15 −6
Original line number Diff line number Diff line
@@ -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 ];
  };
}
})