pythonPackages.secp256k1: init at 0.12.1
This commit is contained in:
parent
9e041fd9be
commit
9f7871070e
|
@ -21328,6 +21328,40 @@ in modules // {
|
|||
};
|
||||
};
|
||||
|
||||
secp256k1 = buildPythonPackage rec {
|
||||
name = "secp256k1-${version}";
|
||||
version = "0.12.1";
|
||||
|
||||
src = pkgs.fetchurl {
|
||||
url = "mirror://pypi/s/secp256k1/${name}.tar.gz";
|
||||
sha256 = "0zrjxvzxqm4bz2jcy8sras8jircgbs6dkrw8j3nc6jhvzlikwwxl";
|
||||
};
|
||||
|
||||
buildInputs = [ pkgs.pkgconfig self.pytest_28 self.pytestrunner ];
|
||||
propagatedBuildInputs = [ self.cffi pkgs.secp256k1 ];
|
||||
|
||||
# Tests are not included in archive
|
||||
doCheck = false;
|
||||
|
||||
preConfigure = ''
|
||||
cp -r ${pkgs.secp256k1.src} libsecp256k1
|
||||
touch libsecp256k1/autogen.sh
|
||||
export INCLUDE_DIR=${pkgs.secp256k1}/include
|
||||
export LIB_DIR=${pkgs.secp256k1}/lib
|
||||
'';
|
||||
|
||||
checkPhase = ''
|
||||
py.test tests
|
||||
'';
|
||||
|
||||
meta = {
|
||||
homepage = https://github.com/ludbb/secp256k1-py;
|
||||
description = "Python FFI bindings for secp256k1";
|
||||
license = with licenses; [ mit ];
|
||||
maintainers = with maintainers; [ chris-martin ];
|
||||
};
|
||||
};
|
||||
|
||||
semantic-version = buildPythonPackage rec {
|
||||
name = "semantic_version-2.4.2";
|
||||
src = pkgs.fetchurl {
|
||||
|
|
Loading…
Reference in New Issue