diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 0074f70eb5..79c9d8b50c 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")