From cb79f3b1ccd100d072e793bc568c765e643d64dd Mon Sep 17 00:00:00 2001 From: Sören Tempel Date: Fri, 27 Sep 2024 20:34:58 +0200 Subject: gnu: Add python-cart. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/python-xyz.scm (python-cart): New variable. Signed-off-by: Ludovic Courtès --- gnu/packages/python-xyz.scm | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) (limited to 'gnu/packages') diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index e5449539a7..1ecd17b487 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -34057,6 +34057,36 @@ (define-public python-opcodes and BMI2).") (license license:bsd-2)))) +(define-public python-cart + (package + (name "python-cart") + (version "1.2.2") + (source + (origin + ;; No source releases available on pypi, hence fetching from GitHub. + (method git-fetch) + (uri (git-reference + (url "https://github.com/CybercentreCanada/cart") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1zycv620iljrsval5rai1wsn0hr25ddx9xhjsyy6xxrgprfxvlfi")))) + (build-system pyproject-build-system) + (arguments + `(#:phases (modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "python" "-m" "unittest" "discover"))))))) + (propagated-inputs (list python-pycryptodome)) + (home-page "https://github.com/CybercentreCanada/cart") + (synopsis "Library for interacting with the CaRT file format") + (description + "This Python library implements the CaRT file format which is commonly +used to store and transmit information about computer malware and associated +metadata.") + (license license:bsd-2))) + (define-public python-ailment (package (name "python-ailment") -- cgit v1.2.3