From c531e5b329fe8226f46acb0931b58f9172877520 Mon Sep 17 00:00:00 2001 From: Theodore Ni <3806110+tjni@users.noreply.github.com> Date: Sun, 27 Nov 2022 13:09:23 -0800 Subject: [PATCH] python310Packages.cypherpunkpay: fix the package By (1) relaxing dependencies, (2) updating disabled test paths, and (3) adding new tests that must be disabled. --- .../python-modules/cypherpunkpay/default.nix | 30 +++++++++++-------- 1 file changed, 18 insertions(+), 12 deletions(-) diff --git a/pkgs/development/python-modules/cypherpunkpay/default.nix b/pkgs/development/python-modules/cypherpunkpay/default.nix index 8ef0f4cac78c..db95ee9e62a9 100644 --- a/pkgs/development/python-modules/cypherpunkpay/default.nix +++ b/pkgs/development/python-modules/cypherpunkpay/default.nix @@ -36,7 +36,9 @@ buildPythonPackage rec { postPatch = '' substituteInPlace pyproject.toml \ - --replace 'monero = "^0.99"' 'monero = ">=0.99"' \ + --replace "bitstring = '^3.1.9'" "bitstring = '>=3.1.9'" \ + --replace 'cffi = "1.15.0"' 'cffi = ">=1.15.0"' \ + --replace 'ecdsa = "^0.17.0"' 'ecdsa = ">=0.17.0"' \ --replace 'pypng = "^0.0.20"' 'pypng = ">=0.0.20"' \ --replace 'tzlocal = "2.1"' 'tzlocal = ">=2.1"' ''; @@ -70,22 +72,26 @@ buildPythonPackage rec { disabledTestPaths = [ # performance test - "test/unit/tools/pbkdf2_test.py" + "tests/unit/tools/pbkdf2_test.py" # tests require network connection - "test/network/explorers/bitcoin" - "test/network/net/http_client" - "test/network/prices" + "tests/network/explorers/bitcoin" + "tests/network/monero/monero_address_transactions_db_test.py" + "tests/network/net/http_client" + "tests/network/prices" # tests require bitcoind running - "test/network/full_node_clients" + "tests/network/full_node_clients" # tests require lnd running - "test/network/ln" + "tests/network/ln" # tests require tor running - "test/network/net/tor_client" + "tests/network/monero/monero_test.py" + "tests/network/net/tor_client" + "tests/network/usecases/calc_monero_address_credits_uc_test.py" + "tests/network/usecases/fetch_monero_txs_from_open_node_uc_test.py" # tests require the full environment running - "test/acceptance/views" - "test/acceptance/views_admin" - "test/acceptance/views_donations" - "test/acceptance/views_dummystore" + "tests/acceptance/views" + "tests/acceptance/views_admin" + "tests/acceptance/views_donations" + "tests/acceptance/views_dummystore" ]; meta = with lib; {