diff options
| author | Nicolas Graves <ngraves@ngraves.fr> | 2025-10-05 13:44:39 +0200 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-10-05 17:09:11 +0100 |
| commit | 43193b2a99b0755be777264c013aa5a0c24842dd (patch) | |
| tree | cc0d108c40efedaf6b1c2cda51653cc13944f560 /gnu/packages/python-xyz.scm | |
| parent | d0e5d4ac9dfd4eff2625c9f74182f774a148e346 (diff) | |
gnu: python-phonenumbers: Switch to pyproject.
* gnu/packages/python-xyz.scm (python-phonenumbers):
[source]: Switch to git-fetch.
[build-system]: Switch to pyproject-build-system.
[arguments]<#:test-backend, #:test-flags>: Configure tests.
<#:phases>: Add phase 'chdir.
[native-inputs]: Add python-setuptools.
[propagated-inputs]: Add python-protobuf.
Change-Id: Ibfb25c729e962a3555ebfcc6bbeda499c9e57fc2
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu/packages/python-xyz.scm')
| -rw-r--r-- | gnu/packages/python-xyz.scm | 29 |
1 files changed, 20 insertions, 9 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 4f7228c5f8..51054340e0 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -28234,16 +28234,27 @@ objects on other machines, also known as remote procedure calls (RPC).") (version "8.13.37") (source (origin - (method url-fetch) - (uri (pypi-uri "phonenumbers" version)) + (method git-fetch) + (uri (git-reference + (url "https://github.com/daviddrysdale/python-phonenumbers") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) (sha256 - (base32 - "1whw3p0p90x1iyw5cqf2pval90zy20c26ry3ywb0bsls2pnmycdx")))) - (build-system python-build-system) - (home-page - "https://github.com/daviddrysdale/python-phonenumbers") - (synopsis - "Python library for dealing with international phone numbers") + (base32 "1bgab6s7l2bqg671sns138c9qr9f8ndvjr4ig8l3ik9q054l9k9n")))) + (build-system pyproject-build-system) + (arguments + (list + #:test-backend #~'custom + #:test-flags #~(list "-m" "testwrapper") + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'chdir + (lambda _ + (chdir "python")))))) + (propagated-inputs (list python-protobuf)) + (native-inputs (list python-setuptools)) + (home-page "https://github.com/daviddrysdale/python-phonenumbers") + (synopsis "Python library for dealing with international phone numbers") (description "This package provides a Python port of Google's libphonenumber library.") (license license:asl2.0))) |
