From 54c542063f1fb447c9a03831d2cfd5bd4800e135 Mon Sep 17 00:00:00 2001 From: Nicolas Graves Date: Sun, 26 Oct 2025 13:12:22 +0100 Subject: [PATCH] gnu: python-onetimepass: Switch to pyproject. * gnu/packages/python-xyz.scm (python-onetimepass): [source]: Switch to git-fetch. [build-system]: Switch to pyproject-build-system. [arguments]<#:tests?>: Disable them. [native-inputs]: Add python-setuptools. [description]: Improve style. Change-Id: I6d01244eb8bf16e2d88e360477bc99f3f48739fa Signed-off-by: Sharlatan Hellseher --- gnu/packages/python-xyz.scm | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index a5fc099f7092286a62123fe13c1f828e68df8163..89d6c5a7ee65eb66d104b3dd086c52bed8c568bc 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -26982,16 +26982,22 @@ You can simply type pybtex instead of bibtex.") (version "1.0.1") (source (origin - (method url-fetch) - (uri (pypi-uri "onetimepass" version)) + (method git-fetch) + (uri (git-reference + (url "https://github.com/tadeck/onetimepass/") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) (sha256 - (base32 "09vagxgbq78wvq4xbikmn2hpqqsa2i96kqsmphf7dqynfv0dlsd5")))) - (build-system python-build-system) + (base32 "0wmv62l3r8r4428gdzyj80lhgadfqvj220khz1wnm9alyzg60wkh")))) + (build-system pyproject-build-system) + (arguments (list #:tests? #f)) ; Requires unpackaged timecop. + (native-inputs (list python-setuptools)) (propagated-inputs (list python-six)) (home-page "https://github.com/tadeck/onetimepass/") (synopsis "One-time password library") - (description "Python one-time password library for HMAC-based (HOTP) and -time-based (TOTP) passwords.") + (description + "Python one-time password library for HMAC-based (HOTP) and time-based +(TOTP) passwords.") (license license:expat))) (define-public python-online-judge-api-client