Merge pull request #150789 from milahu/python-packages-blspy-1.0.8

pythonPackages.blspy: 1.0.6 -> 1.0.8
This commit is contained in:
Bobby Rong 2021-12-18 18:36:00 +08:00 committed by GitHub
commit 2920a1287f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 22 additions and 9 deletions

View file

@ -2,7 +2,6 @@
, buildPythonPackage
, fetchPypi
, fetchFromGitHub
, fetchpatch
, setuptools-scm
, substituteAll
, cmake
@ -14,12 +13,12 @@
buildPythonPackage rec {
pname = "blspy";
version = "1.0.6";
version = "1.0.8";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-sULXnecEs8VI687pR9EK9jjYWlrB4tV4dt7Kzekaxb4=";
hash = "sha256-yKLirwWWeUTs5BFXZfqfuNJUXtQW40EiNPxuP+FeHso=";
};
patches = [
@ -40,12 +39,12 @@ buildPythonPackage rec {
sha256 = "sha256-lGz7o6DQVAuEc7yTp8bYS2kwjzHwGaNjugDi1ruRJOA=";
fetchSubmodules = true;
};
})
# avoid dynamic linking error at import time
(fetchpatch {
url = "https://github.com/Chia-Network/bls-signatures/pull/287/commits/797241e9dae1c164c862cbdb38c865d4b124a601.patch";
sha256 = "sha256-tlc4aA75gUxt5OaSNZqIlO//PXjmddVgVLYuVEFNmkE=";
catch2_src = fetchFromGitHub {
owner = "catchorg";
repo = "Catch2";
rev = "v2.13.7"; # pinned by blspy
sha256 = "NhZ8Hh7dka7KggEKKZyEbIZahuuTYeCT7cYYSUvkPzI=";
};
})
];

View file

@ -48,3 +48,17 @@ index 5a8c381..d9aa940 100644
)
FetchContent_MakeAvailable(pybind11 relic)
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 449164a..15a955e 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -37,8 +37,7 @@ install(FILES $<TARGET_FILE:bls> DESTINATION lib)
if(BUILD_BLS_TESTS)
FetchContent_Declare(
Catch2
- GIT_REPOSITORY https://github.com/catchorg/Catch2.git
- GIT_TAG v2.13.7
+ URL @catch2_src@
)
FetchContent_MakeAvailable(Catch2)
add_executable(runtest test.cpp)