1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-04-06 21:20:33 +02:00

gnu: Add python-quantlaw.

* gnu/packages/python-xyz.scm (python-quantlaw): New variable.

Change-Id: I22d57cb02ae805559e26eb345ff140ae420da7ad
Signed-off-by: Cayetano Santos <csantosb@inventati.org>
This commit is contained in:
Isidor Zeuner
2025-12-06 18:17:00 +01:00
committed by Cayetano Santos
parent 99af411456
commit ad94bc31ca

View File

@@ -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")