From ad94bc31caada616ccafdd8dad0b21adb19d4f98 Mon Sep 17 00:00:00 2001 From: Isidor Zeuner Date: Sat, 6 Dec 2025 18:17:00 +0100 Subject: [PATCH] gnu: Add python-quantlaw. * gnu/packages/python-xyz.scm (python-quantlaw): New variable. Change-Id: I22d57cb02ae805559e26eb345ff140ae420da7ad Signed-off-by: Cayetano Santos --- gnu/packages/python-xyz.scm | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 0074f70eb57c900768629752533766e86e73e2a3..79c9d8b50c8709dbee2f5505e65d558621fb380c 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -176,6 +176,7 @@ ;;; Copyright © 2025 Allan Adair ;;; Copyright © 2025 Hennadii Stepanov ;;; Copyright © 2025 Luca Kredel +;;; Copyright © 2025 Isidor Zeuner ;;; ;;; 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")