Update coincurve version.

This commit is contained in:
tecnovert
2024-09-19 12:15:50 +02:00
parent 4b18ddfe79
commit 25b479fdb6
7 changed files with 54 additions and 52 deletions

View File

@@ -2,6 +2,7 @@
#:use-module (guix packages)
#:use-module ((guix licenses) #:prefix license:)
#:use-module (guix build-system python)
#:use-module (guix build-system pyproject)
#:use-module (guix build-system gnu)
#:use-module (guix git-download)
#:use-module (guix download)
@@ -11,29 +12,32 @@
#:use-module (gnu packages autotools)
#:use-module (gnu packages certs)
#:use-module (gnu packages check)
#:use-module (gnu packages cmake)
#:use-module (gnu packages databases)
#:use-module (gnu packages finance)
#:use-module (gnu packages gnupg)
#:use-module (gnu packages python)
#:use-module (gnu packages python-build)
#:use-module (gnu packages python-check)
#:use-module (gnu packages python-crypto)
#:use-module (gnu packages python-science)
#:use-module (gnu packages python-xyz)
#:use-module (gnu packages libffi)
#:use-module (gnu packages license))
(define libsecp256k1-anonswap
(define libsecp256k1-basicswap
(package
(name "libsecp256k1-anonswap")
(version "anonswap_v0.2")
(name "libsecp256k1-basicswap")
(version "basicswap_v0.2")
(source (origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/tecnovert/secp256k1")
(url "https://github.com/basicswap/secp256k1")
(commit version)))
(sha256
(base32
"1r07rkrw5qsnc5v1q7cb0zfs1cr62fqwq7kd2v8650g6ha4k5r8i"))
"0zvqgswmy1q46nmpjn388pljvl65x3y2k4caw742m3j121jqmfgx"))
(file-name (git-file-name name version))))
(build-system gnu-build-system)
(arguments
@@ -62,47 +66,49 @@
(license license:unlicense)))
(define python-coincurve-anonswap
(define python-coincurve-basicswap
(package
(name "python-coincurve-anonswap")
(version "anonswap_v0.2")
(name "python-coincurve-basicswap")
(version "basicswap_v0.2")
(source
(origin
(method git-fetch)
(uri
(git-reference
(url "https://github.com/tecnovert/coincurve")
(url "https://github.com/basicswap/coincurve")
(commit version)))
(file-name
(git-file-name name version))
(sha256
(base32 "08fz02afh88m83axfm8jsgq1c65mw1f3g07x9hz361vblvqjwzqh"))))
(build-system python-build-system)
(base32 "1vm9cvwr0z02zc0mp7l8qj9vhg8kmfrzysiwzg91zkgmccza9ryc"))))
(build-system pyproject-build-system)
(arguments
'(#:tests? #f ;XXX fails to load "libsecp256k1.dll"
#:phases (modify-phases %standard-phases
(add-after 'unpack 'patch-libsec256k1-path
(lambda _
(substitute* "setup.py"
(("if has_system_lib\\(\\)")
"if True")
((", 'requests'")
"")
(("download_library\\(self\\)")
"")))))))
`(#:phases
(modify-phases %standard-phases
(add-before 'build 'set-version
(lambda _
(setenv "COINCURVE_IGNORE_SYSTEM_LIB" "OFF")
;; ZIP does not support timestamps before 1980.
(setenv "SOURCE_DATE_EPOCH" "315532800")))
)))
(propagated-inputs
(list
libsecp256k1-anonswap
libsecp256k1-basicswap
python-asn1crypto
python-cffi))
(native-inputs
(list
python-setuptools
cmake-3.30
python-hatchling
python-scikit-build
python-scikit-build-core
pkg-config
python-pytest
python-pytest-benchmark
))
(synopsis "Python libsecp256k1 wrapper")
(description "Python libsecp256k1 wrapper.")
(home-page "https://github.com/tecnovert/coincurve")
(home-page "https://github.com/basicswap/coincurve")
(license license:bsd-3)))
(define python-sqlalchemy-1.4.39
@@ -139,30 +145,25 @@
(lambda* (#:key inputs #:allow-other-keys)
(substitute* "bin/basicswap_prepare.py"
(("GUIX_SSL_CERT_DIR = None")
(string-append "GUIX_SSL_CERT_DIR = \"" (search-input-directory inputs "etc/ssl/certs") "\"")))
)
))))
(string-append "GUIX_SSL_CERT_DIR = \"" (search-input-directory inputs "etc/ssl/certs") "\""))))))))
(propagated-inputs
(list
gnupg
nss-certs
python-coincurve-anonswap
python-coincurve-basicswap
python-pycryptodome
python-pytest
python-sqlalchemy-1.4.39
python-pyzmq
python-gnupg
python-jinja2
python-pysocks
))
python-pysocks))
(native-inputs
(list
python-setuptools
python-wheel
python-pylint
python-pyflakes
))
python-pyflakes))
(synopsis "Simple Atomic Swap Network - Proof of Concept")
(description #f)
(description "Facilitates cross-chain atomic swaps")
(home-page "https://github.com/basicswap/basicswap")
(license license:bsd-3)))