<commit_before>(use-modules (ice-9 match)
             (srfi srfi-1)
             (guix gexp)
             (guix packages)
             (guix licenses)
             (guix download)
             (guix git-download)
             (guix build-system python)
             (gnu packages)
             (gnu packages base)
             (gnu packages python))

(define %source-dir (dirname (current-filename)))

(define python-pyld-signatures
  (package
    (name "python-pyld-signatures")
    (version "git")
    (source (local-file %source-dir
                        #:recursive? #t
                        #:select? (git-predicate %source-dir)))
    (build-system python-build-system)
    (propagated-inputs
     `(("python-pyld" ,python-pyld)))
    (home-page "https://github.com/Spec-Ops/pyld-signatures/")
    (synopsis "Implementation of Linked Data Signatures using python-pyld.")
    (description "python-pyld-signatures is a Python library implementing
the Linked Data Signatures algorithm, for verifiable claims and other purposes.
It builds on python-pyld and integrates nicely with existing json-ld applications.")
    (license bsd-3)))

;; Make sure we have Python in our environment
(package
  (inherit python-pyld-signatures)
  (inputs
   `(("python" ,python))))
<commit_msg>Add python-cryptography to inputs of pyld-signatures library<commit_after>(use-modules (ice-9 match)
             (srfi srfi-1)
             (guix gexp)
             (guix packages)
             (guix licenses)
             (guix download)
             (guix git-download)
             (guix build-system python)
             (gnu packages)
             (gnu packages base)
             (gnu packages python))

(define %source-dir (dirname (current-filename)))

(define python-pyld-signatures
  (package
    (name "python-pyld-signatures")
    (version "git")
    (source (local-file %source-dir
                        #:recursive? #t
                        #:select? (git-predicate %source-dir)))
    (build-system python-build-system)
    (propagated-inputs
     `(("python-pyld" ,python-pyld)
       ("python-cryptography" ,python-cryptography)))
    (home-page "https://github.com/Spec-Ops/pyld-signatures/")
    (synopsis "Implementation of Linked Data Signatures using python-pyld.")
    (description "python-pyld-signatures is a Python library implementing
the Linked Data Signatures algorithm, for verifiable claims and other purposes.
It builds on python-pyld and integrates nicely with existing json-ld applications.")
    (license bsd-3)))

;; Make sure we have Python in our environment
(package
  (inherit python-pyld-signatures)
  (inputs
   `(("python" ,python))))

{'fraction_non_alphanumeric': 0.11294559099437149, 'fraction_numerical': 0.00225140712945591, 'mean_word_length': 2.435567010309278, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1703660', 'n_tokens_mistral': 765, 'n_tokens_neox': 745, 'n_words': 218}