diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 08a33061a9..d352e879f4 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -66,7 +66,7 @@ ;;; Copyright © 2019, 2020, 2021 Giacomo Leidi ;;; Copyright © 2019 Wiktor Żelazny ;;; Copyright © 2019, 2020, 2021, 2022 Tanguy Le Carrour -;;; Copyright © 2019, 2021 Mădălin Ionel Patrașcu +;;; Copyright © 2019, 2021, 2022 Mădălin Ionel Patrașcu ;;; Copyright © 2020 Riku Viitanen ;;; Copyright © 2020 Jakub Kądziołka ;;; Copyright © 2020 sirgazil @@ -675,6 +675,38 @@ (define-public python-lunr that best match text queries.") (license license:expat))) +(define-public python-mdurl + (package + (name "python-mdurl") + (version "0.1.2") + (source (origin + (method url-fetch) + (uri (pypi-uri "mdurl" version)) + (sha256 + (base32 + "1fn1hy35h9grggwqax90zcb52inlfxrxsm27vlqqz8zfyllkshdv")))) + (build-system python-build-system) + (arguments + (list + #:tests? #f ;pypi source does not contain tests + #:phases + #~(modify-phases %standard-phases + (replace 'build + (lambda _ (invoke "flit" "build"))) + (replace 'install + (lambda _ + (for-each + (lambda (wheel) + (invoke "python" "-m" "pip" "install" + wheel (string-append "--prefix=" #$output))) + (find-files "dist" "\\.whl$"))))))) + (native-inputs (list python-flit)) + (home-page "https://github.com/executablebooks/mdurl") + (synopsis "Markdown URL utilities") + (description + "This package implements a Python port of the JavaScript @code{mdurl}.") + (license license:expat))) + (define-public python-mrkd (package (name "python-mrkd")