7 python3.pkgs.buildPythonPackage {
8 pname = "python-secp256k1-cardano";
11 format = "setuptools";
13 src = fetchFromGitHub {
15 repo = "python-secp256k1";
16 rev = "5a8f761a4b9a1594653cc4deebadc3398b07533c"; # No tags in repo
17 hash = "sha256-6bE4/G2gW2F8h5FWtI3TZ6FtijsB/slvFT/SIVv7VIY=";
20 nativeBuildInputs = [ pkg-config ];
22 propagatedBuildInputs = with python3.pkgs; [ cffi secp256k1 ];
24 nativeCheckInputs = [ python3.pkgs.pytestCheckHook ];
26 # Tests expect .so files and are failing
30 cp -r ${python3.pkgs.secp256k1.src} libsecp256k1
31 export INCLUDE_DIR=${python3.pkgs.secp256k1}/include
32 export LIB_DIR=${python3.pkgs.secp256k1}/lib
36 homepage = "https://github.com/OpShin/python-secp256k1";
37 description = "A fork of python-secp256k1, fixing the commit hash of libsecp256k1 to a Cardano compatible version";
38 license = with lib.licenses; [ mit ];
39 maintainers = with lib.maintainers; [ t4ccer ];