Unverified Commit 19d8a780 authored by éclairevoyant's avatar éclairevoyant
Browse files

python311Packages.python-secp256k1-cardano: fix build

parent beaea78b
Loading
Loading
Loading
Loading
+10 −7
Original line number Diff line number Diff line
{
  lib,
  fetchFromGitHub,
  python3,
  buildPythonPackage,
  pkg-config,
  cffi,
  secp256k1,
  pytestCheckHook,
}:

python3.pkgs.buildPythonPackage {
buildPythonPackage {
  pname = "python-secp256k1-cardano";
  version = "0.2.3";

@@ -20,20 +23,20 @@ python3.pkgs.buildPythonPackage {

  nativeBuildInputs = [ pkg-config ];

  propagatedBuildInputs = with python3.pkgs; [
  propagatedBuildInputs = [
    cffi
    secp256k1
  ];

  nativeCheckInputs = [ python3.pkgs.pytestCheckHook ];
  nativeCheckInputs = [ pytestCheckHook ];

  # Tests expect .so files and are failing
  doCheck = false;

  preConfigure = ''
    cp -r ${python3.pkgs.secp256k1.src} libsecp256k1
    export INCLUDE_DIR=${python3.pkgs.secp256k1}/include
    export LIB_DIR=${python3.pkgs.secp256k1}/lib
    cp -r ${secp256k1.src} libsecp256k1
    export INCLUDE_DIR=${secp256k1}/include
    export LIB_DIR=${secp256k1}/lib
  '';

  meta = {