diff options
| author | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-10-01 23:09:05 +0100 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-10-01 23:09:05 +0100 |
| commit | 2a2c873e6e8d5372ef8f284b1e82d711db31c93c (patch) | |
| tree | 49109ad7b8b0bfd1c8b31613903da2caf3cbb734 /gnu/packages/python.scm | |
| parent | 851b7f175ab8756391e02ebecb5e0c33367cda78 (diff) | |
gnu: pythoncapi-compat: Move to python.
* gnu/packages/python-xyz.scm (pythoncapi-compat): Move from here ...
* gnu/packages/python.scm: ... to here.
Change-Id: If3ac42200be381f9aafedbf0468e7381daaf2471
Diffstat (limited to 'gnu/packages/python.scm')
| -rw-r--r-- | gnu/packages/python.scm | 30 |
1 files changed, 29 insertions, 1 deletions
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 5fbf498ac2f..27378da3575 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm | |||
| @@ -52,7 +52,7 @@ | |||
| 52 | ;;; Copyright © 2018 Nicolas Goaziou <mail@nicolasgoaziou.fr> | 52 | ;;; Copyright © 2018 Nicolas Goaziou <mail@nicolasgoaziou.fr> |
| 53 | ;;; Copyright © 2018 Oleg Pykhalov <go.wigust@gmail.com> | 53 | ;;; Copyright © 2018 Oleg Pykhalov <go.wigust@gmail.com> |
| 54 | ;;; Copyright © 2018 Clément Lassieur <clement@lassieur.org> | 54 | ;;; Copyright © 2018 Clément Lassieur <clement@lassieur.org> |
| 55 | ;;; Copyright © 2018, 2019, 2020, 2021 Maxim Cournoyer <maxim@guixotic.coop> | 55 | ;;; Copyright © 2018, 2019, 2020, 2021, 2025 Maxim Cournoyer <maxim@guixotic.coop> |
| 56 | ;;; Copyright © 2018 Luther Thompson <lutheroto@gmail.com> | 56 | ;;; Copyright © 2018 Luther Thompson <lutheroto@gmail.com> |
| 57 | ;;; Copyright © 2018 Vagrant Cascadian <vagrant@debian.org> | 57 | ;;; Copyright © 2018 Vagrant Cascadian <vagrant@debian.org> |
| 58 | ;;; Copyright © 2019, 2024 Tanguy Le Carrour <tanguy@bioneland.org> | 58 | ;;; Copyright © 2019, 2024 Tanguy Le Carrour <tanguy@bioneland.org> |
| @@ -96,10 +96,12 @@ | |||
| 96 | #:use-module (gnu packages tls) | 96 | #:use-module (gnu packages tls) |
| 97 | #:use-module (gnu packages xml) | 97 | #:use-module (gnu packages xml) |
| 98 | #:use-module (guix gexp) | 98 | #:use-module (guix gexp) |
| 99 | #:use-module (guix git-download) | ||
| 99 | #:use-module (guix packages) | 100 | #:use-module (guix packages) |
| 100 | #:use-module (guix download) | 101 | #:use-module (guix download) |
| 101 | #:use-module (guix search-paths) | 102 | #:use-module (guix search-paths) |
| 102 | #:use-module (guix utils) | 103 | #:use-module (guix utils) |
| 104 | #:use-module (guix build-system copy) | ||
| 103 | #:use-module (guix build-system gnu) | 105 | #:use-module (guix build-system gnu) |
| 104 | #:use-module (guix build-system trivial) | 106 | #:use-module (guix build-system trivial) |
| 105 | #:use-module (srfi srfi-1) | 107 | #:use-module (srfi srfi-1) |
| @@ -1596,6 +1598,32 @@ and the unversioned commands available."))) | |||
| 1596 | Use this package if you need a minimal Python toolchain instead of just | 1598 | Use this package if you need a minimal Python toolchain instead of just |
| 1597 | the interpreter.")))) | 1599 | the interpreter.")))) |
| 1598 | 1600 | ||
| 1601 | (define-public pythoncapi-compat | ||
| 1602 | ;; No release nor tags: use the latest commit. | ||
| 1603 | (let ((commit "b541b98df1e3e5aabb5def27422a75c876f5a88a") | ||
| 1604 | (revision "0")) | ||
| 1605 | (package | ||
| 1606 | (name "pythoncapi-compat") | ||
| 1607 | (version "0") | ||
| 1608 | (source (origin | ||
| 1609 | (method git-fetch) | ||
| 1610 | (uri (git-reference | ||
| 1611 | (url "https://github.com/python/pythoncapi-compat") | ||
| 1612 | (commit commit))) | ||
| 1613 | (file-name (git-file-name name version)) | ||
| 1614 | (sha256 | ||
| 1615 | (base32 | ||
| 1616 | "09935gybfj2wqbf6jmn61m21qnx3za8xjv375n3daq8l3cs6dmmx")))) | ||
| 1617 | (build-system copy-build-system) | ||
| 1618 | (arguments (list #:install-plan | ||
| 1619 | #~'(("pythoncapi_compat.h" "include/")))) | ||
| 1620 | (home-page "https://github.com/python/pythoncapi-compat") | ||
| 1621 | (synopsis "Python C API compatibility") | ||
| 1622 | (description "The pythoncapi-compat project can be used to write a C or | ||
| 1623 | C++ extension supporting a wide range of Python versions with a single code | ||
| 1624 | base, via the @file{pythoncapi_compat.h} header file.") | ||
| 1625 | (license license:bsd-0)))) | ||
| 1626 | |||
| 1599 | (define-public micropython | 1627 | (define-public micropython |
| 1600 | (package | 1628 | (package |
| 1601 | (name "micropython") | 1629 | (name "micropython") |
