From a954925b41939021eff09a361ccd2be67fe3aae3 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Tue, 17 Mar 2026 11:59:36 +0000 Subject: [PATCH] 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] : Use custom. [phases]{build-extensions, build-test-helper}: Remove phases. [native-inputs]: Remove unzip and python-wheel. Change-Id: I2afcf969ddc1dccc87bd81c0d7b9f175d8e7f3af --- gnu/packages/databases.scm | 35 +++++++++++++---------------------- 1 file changed, 13 insertions(+), 22 deletions(-) diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm index aff03bddde..e2df129f92 100644 --- a/gnu/packages/databases.scm +++ b/gnu/packages/databases.scm @@ -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