summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorIsidor Zeuner <guix@quidecco.pl>2025-12-06 18:17:00 +0100
committerCayetano Santos <csantosb@inventati.org>2025-12-11 19:56:25 +0100
commitad94bc31caada616ccafdd8dad0b21adb19d4f98 (patch)
treee929c976fc86bf317113c10459be46daeeff7307 /gnu
parent99af41145634101b0f5809f41d71a96b41e82810 (diff)
gnu: Add python-quantlaw.
* gnu/packages/python-xyz.scm (python-quantlaw): New variable. Change-Id: I22d57cb02ae805559e26eb345ff140ae420da7ad Signed-off-by: Cayetano Santos <csantosb@inventati.org>
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/python-xyz.scm37
1 files changed, 37 insertions, 0 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 0074f70eb57..79c9d8b50c8 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -176,6 +176,7 @@
;;; Copyright © 2025 Allan Adair <allan@adair.no>
;;; Copyright © 2025 Hennadii Stepanov <hebasto@gmail.com>
;;; Copyright © 2025 Luca Kredel <luca.kredel@web.de>
+;;; Copyright © 2025 Isidor Zeuner <guix@quidecco.pl>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -15712,6 +15713,42 @@ be relatively fast, and can use multiple cores to sort the columns and
tie-resolvement is accelerated by numba.")
(license license:expat)))
+(define-public python-quantlaw
+ (package
+ (name "python-quantlaw")
+ (version "0.0.7")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/Quantlaw/quantlaw")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1ps0hcw2x2w9g0gipflka98zf1zsadgs161r6pgp7nh0sq8kpkrh"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:test-flags
+ #~(list "-k"
+ ;; test expects network access
+ "not test_load_statue_names")
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'fix-pytest-config
+ (lambda _
+ (substitute* "setup.cfg"
+ (("--cov.*")
+ "")))))))
+ (native-inputs (list python-pytest python-setuptools))
+ (propagated-inputs (list python-beautifulsoup4 python-networkx
+ python-pandas python-regex python-requests))
+ (home-page "https://quantlaw.readthedocs.io/")
+ (synopsis "Coding utilities for quantitative legal studies")
+ (description
+ "This package provides coding utilities for quantitative legal studies.")
+ (license license:bsd-3)))
+
(define-public python-singledispatch
(package
(name "python-singledispatch")