diff options
Diffstat (limited to 'gnu/packages/python-science.scm')
| -rw-r--r-- | gnu/packages/python-science.scm | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm index dda2b79d576..a32e0459b34 100644 --- a/gnu/packages/python-science.scm +++ b/gnu/packages/python-science.scm | |||
| @@ -4771,6 +4771,56 @@ production-critical data pipelines or reproducible research settings. With | |||
| 4771 | @end itemize") | 4771 | @end itemize") |
| 4772 | (license license:expat))) | 4772 | (license license:expat))) |
| 4773 | 4773 | ||
| 4774 | (define-public python-janitor-rs | ||
| 4775 | (package | ||
| 4776 | (name "python-janitor-rs") | ||
| 4777 | (version "0.6.1") | ||
| 4778 | (source | ||
| 4779 | (origin | ||
| 4780 | ;; The upstream git source has no tags. | ||
| 4781 | (method url-fetch) | ||
| 4782 | (uri (pypi-uri "janitor_rs" version)) | ||
| 4783 | (sha256 | ||
| 4784 | (base32 "0xicxplz8vngbj4s6c7d08gpivns5bda85020yf1wjs8788g9m2l")))) | ||
| 4785 | (build-system pyproject-build-system) | ||
| 4786 | (arguments | ||
| 4787 | (list | ||
| 4788 | #:tests? #f ; No tests. | ||
| 4789 | #:imported-modules `(,@%cargo-build-system-modules | ||
| 4790 | ,@%pyproject-build-system-modules) | ||
| 4791 | #:modules '(((guix build cargo-build-system) #:prefix cargo:) | ||
| 4792 | (guix build pyproject-build-system) | ||
| 4793 | (guix build utils)) | ||
| 4794 | #:phases | ||
| 4795 | #~(modify-phases %standard-phases | ||
| 4796 | (add-after 'unpack 'prepare-cargo-build-system | ||
| 4797 | (lambda args | ||
| 4798 | (for-each | ||
| 4799 | (lambda (phase) | ||
| 4800 | (format #t "Running cargo phase: ~a~%" phase) | ||
| 4801 | (apply (assoc-ref cargo:%standard-phases phase) | ||
| 4802 | #:vendor-dir ".cargo/vendor" | ||
| 4803 | #:cargo-target #$(cargo-triplet) | ||
| 4804 | args)) | ||
| 4805 | '(unpack-rust-crates | ||
| 4806 | configure | ||
| 4807 | check-for-pregenerated-files | ||
| 4808 | patch-cargo-checksums))))))) | ||
| 4809 | (native-inputs (append | ||
| 4810 | (list maturin | ||
| 4811 | rust | ||
| 4812 | `(,rust "cargo")) | ||
| 4813 | (or (and=> (%current-target-system) | ||
| 4814 | (compose list make-rust-sysroot)) | ||
| 4815 | '()))) | ||
| 4816 | (inputs (cargo-inputs 'janitor-rs)) | ||
| 4817 | (home-page "https://github.com/pyjanitor-devs/janitor-rs") | ||
| 4818 | (synopsis "Rust library for faster pyjanitor") | ||
| 4819 | (description | ||
| 4820 | "This package provides a Rust library to improve the performance of | ||
| 4821 | @code{python-pyjanitor}.") | ||
| 4822 | (license license:expat))) | ||
| 4823 | |||
| 4774 | (define-public python-pyjanitor | 4824 | (define-public python-pyjanitor |
| 4775 | (package | 4825 | (package |
| 4776 | (name "python-pyjanitor") | 4826 | (name "python-pyjanitor") |
