10 buildPythonPackage rec {
13 format = "setuptools";
16 inherit pname version;
17 sha256 = "82c06712d69ef945220c8b53c1a0d424c2ff6a1f64aee609030df79ad8383397";
21 # don't do hacky tarball download + setuptools check
22 sed -i '38,54d' setup.py
23 substituteInPlace setup.py --replace ", 'pytest-runner==2.6.2'" ""
26 nativeBuildInputs = [ pkg-config ];
28 propagatedBuildInputs = [ cffi secp256k1 ];
30 nativeCheckInputs = [ pytestCheckHook ];
32 # Tests are not included in archive
36 cp -r ${secp256k1.src} libsecp256k1
37 export INCLUDE_DIR=${secp256k1}/include
38 export LIB_DIR=${secp256k1}/lib
42 homepage = "https://github.com/ludbb/secp256k1-py";
43 description = "Python FFI bindings for secp256k1";
44 license = with lib.licenses; [ mit ];
45 maintainers = with lib.maintainers; [ ];