[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/14: gnu: python-tinycss2: Remove custom build process.
From: |
guix-commits |
Subject: |
01/14: gnu: python-tinycss2: Remove custom build process. |
Date: |
Fri, 7 Jan 2022 15:46:25 -0500 (EST) |
lbraun pushed a commit to branch wip-python-pep517
in repository guix.
commit 0ae918c91969e25bf0c75ce01bcf58e23fb102fe
Author: Lars-Dominik Braun <lars@6xq.net>
AuthorDate: Fri Jan 7 11:35:56 2022 +0100
gnu: python-tinycss2: Remove custom build process.
* gnu/packages/python-web.scm (python-tinycss2)[arguments]: Remove custom
#:phases, add #:build-backend to override pyproject.toml.
[native-inputs]: Replace python-flit with python-flit-core.
---
gnu/packages/python-web.scm | 27 ++-------------------------
1 file changed, 2 insertions(+), 25 deletions(-)
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index d2c0b73801..f0f0809d5f 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -4539,34 +4539,11 @@ modules:
(sha256
(base32 "0zyc48vbmczpqj7f3f0d7zb3bz29fyj50dg0m6bbwbr5i88kq3sq"))))
(build-system python-build-system)
- (arguments
- `(#:phases
- (modify-phases %standard-phases
- (replace 'build
- (lambda _
- ;; A ZIP archive should be generated, but it fails with "ZIP does
- ;; not support timestamps before 1980". Luckily,
- ;; SOURCE_DATE_EPOCH is respected, which we set to some time in
- ;; 1980.
- (setenv "SOURCE_DATE_EPOCH" "315532800")
- (invoke "flit" "build")))
- (replace 'install
- (lambda* (#:key inputs outputs #:allow-other-keys)
- (add-installed-pythonpath inputs outputs)
- (let ((out (assoc-ref outputs "out")))
- (for-each (lambda (wheel)
- (format #true wheel)
- (invoke "python" "-m" "pip" "install"
- wheel (string-append "--prefix=" out)))
- (find-files "dist" "\\.whl$")))))
- (replace 'check
- (lambda* (#:key inputs outputs tests? #:allow-other-keys)
- (add-installed-pythonpath inputs outputs)
- (invoke "pytest" "-vv"))))))
+ (arguments '(#:build-backend "flit_core.buildapi"))
(propagated-inputs
(list python-webencodings))
(native-inputs
- (list python-flit python-pytest python-pytest-cov
+ (list python-flit-core python-pytest python-pytest-cov
python-pytest-flake8 python-pytest-isort))
(home-page "https://tinycss2.readthedocs.io/")
(synopsis "Low-level CSS parser for Python")
- branch wip-python-pep517 updated (dd83a1b266 -> 09cced13c1), guix-commits, 2022/01/07
- 09/14: gnu: python-flake8-print: Add missing build input., guix-commits, 2022/01/07
- 03/14: gnu: python-carbon: Disable tests., guix-commits, 2022/01/07
- 05/14: gnu: python-tables: Move flags to #:configure-flags., guix-commits, 2022/01/07
- 10/14: gnu: python-unpaddedbase64: Build using poetry., guix-commits, 2022/01/07
- 06/14: gnu: python-capablerobot-usbhub: Build using python-poetry-core., guix-commits, 2022/01/07
- 11/14: gnu: python-yaspin: Add missing build input., guix-commits, 2022/01/07
- 01/14: gnu: python-tinycss2: Remove custom build process.,
guix-commits <=
- 14/14: gnu: python-clikit: Add missing build input., guix-commits, 2022/01/07
- 08/14: gnu: python-rich: Build using poetry., guix-commits, 2022/01/07
- 13/14: gnu: python-immutabledict: Add missing build input., guix-commits, 2022/01/07
- 02/14: gnu: python-sphinxcontrib-github-alt: Use flit-core to build., guix-commits, 2022/01/07
- 07/14: gnu: python-argcomplete: Add missing test input., guix-commits, 2022/01/07
- 04/14: gnu: python-gevent: Override build backend., guix-commits, 2022/01/07
- 12/14: gnu: python-typer: Add missing build input., guix-commits, 2022/01/07