diff options
Diffstat (limited to 'gnu/packages/python-xyz.scm')
| -rw-r--r-- | gnu/packages/python-xyz.scm | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index abda3474c11..ab73f3256f9 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm | |||
| @@ -929,6 +929,55 @@ serves as a drop-in replacement adding features for user-friendly command-line | |||
| 929 | interfaces.") | 929 | interfaces.") |
| 930 | (license license:gpl2+))) | 930 | (license license:gpl2+))) |
| 931 | 931 | ||
| 932 | (define-public python-comrak | ||
| 933 | (package | ||
| 934 | (name "python-comrak") | ||
| 935 | (version "0.0.16") | ||
| 936 | (source | ||
| 937 | (origin | ||
| 938 | (method url-fetch) | ||
| 939 | (uri (pypi-uri "comrak" version)) | ||
| 940 | (sha256 | ||
| 941 | (base32 "1nzr1d957vac16kvy4si3hykx5cbcm73vpy94nm74rf66hgpx8m3")))) | ||
| 942 | (build-system pyproject-build-system) | ||
| 943 | (arguments | ||
| 944 | (list | ||
| 945 | #:imported-modules (append %cargo-build-system-modules | ||
| 946 | %pyproject-build-system-modules) | ||
| 947 | #:modules '(((guix build cargo-build-system) #:prefix cargo:) | ||
| 948 | (guix build pyproject-build-system) | ||
| 949 | (guix build utils)) | ||
| 950 | #:phases | ||
| 951 | #~(modify-phases %standard-phases | ||
| 952 | (add-after 'unpack 'prepare-cargo-build-system | ||
| 953 | (lambda args | ||
| 954 | (for-each (lambda (phase) | ||
| 955 | (format #t "Running cargo phase: ~a~%" phase) | ||
| 956 | (apply (assoc-ref cargo:%standard-phases phase) | ||
| 957 | #:cargo-target #$(cargo-triplet) | ||
| 958 | args)) | ||
| 959 | '(prepare-rust-crates | ||
| 960 | unpack-rust-crates | ||
| 961 | configure | ||
| 962 | check-for-pregenerated-files | ||
| 963 | patch-cargo-checksums))))))) | ||
| 964 | (native-inputs | ||
| 965 | (append | ||
| 966 | (list maturin | ||
| 967 | python-pytest | ||
| 968 | rust | ||
| 969 | `(,rust "cargo")) | ||
| 970 | (or (and=> (%current-target-system) | ||
| 971 | (compose list make-rust-sysroot)) | ||
| 972 | '()))) | ||
| 973 | (inputs (cargo-inputs 'python-comrak)) | ||
| 974 | (home-page "https://github.com/lmmx/comrak") | ||
| 975 | (synopsis "Python bindings for the Comrak Rust library") | ||
| 976 | (description | ||
| 977 | "This package provides Python bindings for the Comrak Rust library, a | ||
| 978 | fast @code{CommonMark/GFM} parser.") | ||
| 979 | (license license:expat))) | ||
| 980 | |||
| 932 | (define-public python-conda-content-trust | 981 | (define-public python-conda-content-trust |
| 933 | (package | 982 | (package |
| 934 | (name "python-conda-content-trust") | 983 | (name "python-conda-content-trust") |
