mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: python-apsw: Update to 3.39.2.0.
* gnu/packages/databases.scm (python-apsw): Update to 3.39.2.0. [source]: Change to git-fetch. [inputs]: Replace sqlite with sqlite-next. [arguments]: Remove custom check phase. Some styling adjustments as well. Signed-off-by: Marius Bakke <marius@gnu.org>
This commit is contained in:
parent
586f6c3a7a
commit
17ffcde1fc
1 changed files with 27 additions and 33 deletions
|
@ -3568,44 +3568,38 @@ PickleShare.")
|
||||||
(define-public python-apsw
|
(define-public python-apsw
|
||||||
(package
|
(package
|
||||||
(name "python-apsw")
|
(name "python-apsw")
|
||||||
(version "3.36.0-r1")
|
(version "3.39.2.0")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method url-fetch)
|
(method git-fetch)
|
||||||
(uri (string-append "https://github.com/rogerbinns/apsw/releases"
|
(uri (git-reference
|
||||||
"/download/" version "/apsw-" version ".zip"))
|
(url "https://github.com/rogerbinns/apsw")
|
||||||
|
(commit version)))
|
||||||
|
(file-name (git-file-name name version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"0w8q73147hv77dlpqrx6h1gx03acc8xqhvdpfp6vkffdm0wmqd8p"))))
|
"0q7fnk8n3m5mpjzh6xyhj409k8sacdbjsfis98my9c50fdn5sr7y"))))
|
||||||
(build-system python-build-system)
|
(build-system python-build-system)
|
||||||
(native-inputs
|
(native-inputs (list unzip))
|
||||||
(list unzip))
|
(inputs (list sqlite-next)) ;SQLite 3.39 required.
|
||||||
(inputs
|
|
||||||
(list sqlite))
|
|
||||||
(arguments
|
(arguments
|
||||||
`(#:phases
|
(list #:phases
|
||||||
(modify-phases %standard-phases
|
#~(modify-phases %standard-phases
|
||||||
(replace 'build
|
(replace 'build
|
||||||
(lambda _
|
(lambda _
|
||||||
(invoke "python" "setup.py" "build" "--enable-all-extensions"
|
(invoke "python" "setup.py" "build" "--enable-all-extensions"
|
||||||
"--enable=load_extension")
|
"--enable=load_extension") #t))
|
||||||
#t))
|
|
||||||
(add-after 'build 'build-test-helper
|
(add-after 'build 'build-test-helper
|
||||||
(lambda _
|
(lambda _
|
||||||
(invoke "gcc" "-fPIC" "-shared" "-o" "./testextension.sqlext"
|
(invoke "gcc" "-fPIC" "-shared" "-o" "./testextension.sqlext"
|
||||||
"-I." "-Isqlite3" "src/testextension.c")
|
"-I." "-Isqlite3" "src/testextension.c") #t)))))
|
||||||
#t))
|
|
||||||
(replace 'check
|
|
||||||
(lambda* (#:key inputs outputs #:allow-other-keys)
|
|
||||||
(add-installed-pythonpath inputs outputs)
|
|
||||||
(invoke "python" "setup.py" "test")
|
|
||||||
#t)))))
|
|
||||||
(home-page "https://github.com/rogerbinns/apsw/")
|
(home-page "https://github.com/rogerbinns/apsw/")
|
||||||
(synopsis "Another Python SQLite Wrapper")
|
(synopsis "Another Python SQLite Wrapper")
|
||||||
(description "APSW is a Python wrapper for the SQLite
|
(description
|
||||||
embedded relational database engine. In contrast to other wrappers such as
|
"APSW is a Python wrapper for the SQLite embedded relational database
|
||||||
pysqlite it focuses on being a minimal layer over SQLite attempting just to
|
engine. In contrast to other wrappers such as pysqlite it focuses on being a
|
||||||
translate the complete SQLite API into Python.")
|
minimal layer over SQLite attempting just to translate the complete SQLite API
|
||||||
|
into Python.")
|
||||||
(license license:zlib)))
|
(license license:zlib)))
|
||||||
|
|
||||||
(define-public python-aiosqlite
|
(define-public python-aiosqlite
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue