1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-04-06 21:20:33 +02:00

gnu: python-apsw: Update to 3.50.4.0.

* gnu/packages/databases.scm (python-apsw): Update to 3.50.4.0.
[source]: Switch to git-fetch.
[arguments] <test-backend, test-flags>: Use custom.
[phases]{build-extensions, build-test-helper}: Remove phases.
[native-inputs]: Remove unzip and python-wheel.

Change-Id: I2afcf969ddc1dccc87bd81c0d7b9f175d8e7f3af
This commit is contained in:
Sharlatan Hellseher
2026-03-17 11:59:36 +00:00
parent 0e5dcea59d
commit a954925b41

View File

@@ -4619,33 +4619,24 @@ PickleShare.")
(define-public python-apsw
(package
(name "python-apsw")
(version "3.46.0.0")
;; The compressed release has fetching functionality disabled.
(version "3.50.4.0")
(source
(origin
(method url-fetch)
(uri (string-append
"https://github.com/rogerbinns/apsw/releases/download/"
version "/apsw-" version ".zip"))
(method git-fetch)
(uri (git-reference
(url "https://github.com/rogerbinns/apsw")
(commit version)))
(file-name (git-file-name name version))
(sha256
(base32
"10yfbasi4mq63g0svyl1h49ylwn9znjylq78id16dzxzk9q9ipdx"))))
(base32 "0r9awjgpl9cmqz5xd4zbqrpiv0rv5c36a18jkqnsfky6n6sgr424"))))
(build-system pyproject-build-system)
(native-inputs
(list unzip python-setuptools python-wheel))
(inputs (list sqlite-next)) ;SQLite 3.45.1 required.
(arguments
(list
#:phases
#~(modify-phases %standard-phases
(add-before 'build 'build-extensions
(lambda _
(invoke "python" "setup.py" "build" "--enable-all-extensions"
"--enable=load_extension")))
(add-after 'build 'build-test-helper
(lambda _
(invoke "gcc" "-fPIC" "-shared" "-o" "./testextension.sqlext"
"-I." "-Isqlite3" "src/testextension.c"))))))
(list #:test-backend #~'custom
#:test-flags #~(list "-m" "apsw.tests")))
(native-inputs
(list python-setuptools))
(inputs
(list sqlite-next)) ;SQLite 3.45.1 required.
(home-page "https://github.com/rogerbinns/apsw/")
(synopsis "Another Python SQLite Wrapper")
(description