Package Details: python-sqlglot 30.4.3-1

Git Clone URL: https://aur.archlinux.org/python-sqlglot.git (read-only, click to copy)
Package Base: python-sqlglot
Description: An easily customizable SQL parser and transpiler
Upstream URL: https://github.com/tobymao/sqlglot
Keywords: parser python sql
Licenses: MIT
Submitter: loonies
Maintainer: loonies
Last Packager: loonies
Votes: 3
Popularity: 0.000510
First Submitted: 2023-03-26 14:57 (UTC)
Last Updated: 2026-05-19 20:21 (UTC)

Latest Comments

mgd commented on 2026-05-19 06:46 (UTC)

@lew_ind: Thanks for posting this - it fixed the build for me.

lew_ind commented on 2026-05-18 21:42 (UTC)

?

build() {
    cd "$srcdir/sqlglot-${pkgver}"
    export SETUPTOOLS_SCM_PRETEND_VERSION=30.0.3
    python -m build --wheel --no-isolation
}

loonies commented on 2026-02-01 19:58 (UTC)

Unfortunately all upstream source tarballs were rewritten. See Failed to build package - old tarballs were modified discussion for more info. This means that any 27.x.x version will not build as those checksums were created before upstream tarballs were modified. The package was updated to 28.x.x which has new checksum and should work as expected.

TheCatsMeow commented on 2026-01-23 04:49 (UTC) (edited on 2026-01-23 04:55 (UTC) by TheCatsMeow)

The .tar.gz for sqlglot is not passing the hash validity check as of python-sqlglot-27.29.0

==> Making package: python-sqlglot 27.29.0-1 (Thu 22 Jan 2026 09:42:28 PM MST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Downloading python-sqlglot-27.29.0.tar.gz...
  % Total    % Received % Xferd  Average Speed  Time    Time    Time   Current
                                 Dload  Upload  Total   Spent   Left   Speed
  0      0   0      0   0      0      0      0           00:03              0
100  7.89M   0  7.89M   0      0  1.04M      0           00:07         662.0k
==> Validating source files with sha256sums...
    python-sqlglot-27.29.0.tar.gz ... FAILED
==> ERROR: One or more files did not pass the validity check!

anonfunc commented on 2024-05-19 10:05 (UTC)

This seems to need python-setuptools-scm as additional make dep. Does not build in a clean chroot in the current state:

==> Starting build()...
* Getting build dependencies for wheel...

ERROR Missing dependencies:
    setuptools_scm
==> ERROR: A failure occurred in build().

gaogao_qwq commented on 2024-04-27 12:22 (UTC) (edited on 2024-04-27 12:22 (UTC) by gaogao_qwq)

Seems like 20.2.0 cannot be used as mycli's dep anymore. Latest package version is 23.12.1, can it be updated if convenient?

loonies commented on 2023-12-20 21:17 (UTC) (edited on 2023-12-20 21:18 (UTC) by loonies)

@BryanLiang, I don't have problems building without python-pip

$ pacman -Q python-pip                                                                                                                                                    
error: package 'python-pip' was not found

$ makepkg -c                                                                                                                                                              
==> Making package: python-sqlglot 20.2.0-1 (Wed 20 Dec 2023)                                                                                                                  
==> Checking runtime dependencies...                                                                                                                                                           
==> Checking buildtime dependencies...                                                                                                                                                         
==> Retrieving sources...                                                                                                                                                                      
  -> Found python-sqlglot-20.2.0.tar.gz                                                                                                                                                        
==> Validating source files with sha256sums...                                                                                                                                                 
    python-sqlglot-20.2.0.tar.gz ... Passed                                                                                                                                                    
==> Extracting sources...                                                                                                                                                                      
  -> Extracting python-sqlglot-20.2.0.tar.gz with bsdtar                                                                                                                                       
==> Starting build()...
--- SNIP ---
==> Tidying install...
  -> Removing empty directories...
  -> Removing libtool files...
  -> Purging unwanted files...
  -> Removing static library files...
  -> Stripping unneeded symbols from binaries and libraries...
  -> Compressing man and info pages...
==> Checking for packaging issues...
==> Creating package "python-sqlglot"...
  -> Generating .PKGINFO file...
  -> Generating .BUILDINFO file...
  -> Generating .MTREE file...
  -> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: python-sqlglot 20.2.0-1 (Wed 20 Dec 2023)
==> Cleaning up...

loonies commented on 2023-12-06 18:26 (UTC)

@BryanLiang I'm going to take a look

BryanLiang commented on 2023-11-02 09:48 (UTC)

Could you please add python-pip as the make dependency? python-pip is required to build this package, but it is not included in python or python-setuptools.