From ef93de4b552be6e8174ff4d6853372a452fdce83 Mon Sep 17 00:00:00 2001 From: zimoun Date: Thu, 25 Jun 2020 17:34:37 +0200 Subject: [PATCH] DRAFT: --- gnu/packages/python-xyz.scm | 65 +++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 10cf27dbd7..32fe1ea58a 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -81,6 +81,7 @@ ;;; Copyright © 2020 Josh Holland ;;; Copyright © 2020 Yuval Kogman ;;; Copyright © 2020 Michael Rohleder +;;; Copyright © 2020 Simon Tournier ;;; ;;; This file is part of GNU Guix. ;;; @@ -20139,3 +20140,67 @@ For the most part it's transliterated from C, the major differences are: @end itemize ") (license license:gpl3+))) + +(define-public python-attrs-strict + (package + (name "python-attrs-strict") + (version "0.1.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "attrs_strict" version)) + (sha256 + (base32 + "0nldyv053xiv9aaysjszgisi9d9d87f5l2jf3rhl3xm9c9spar96")))) + (build-system python-build-system) + (native-inputs + `(("python-pytest" ,python-pytest))) + (propagated-inputs + `(("python-attrs" ,python-attrs))) + (home-page "https://github.com/bloomberg/attrs-strict") + (synopsis "Runtime validators for attrs") + (description + "Package that contains runtime validation for @code{attrs} data classes +based on the types existing in the typing module.") + (license license:asl2.0))) + +(define-public python-swh-model + (package + (name "python-swh-model") + (version "0.3.4") + (source + (origin + (method url-fetch) + (uri (pypi-uri "swh.model" version)) + (sha256 + (base32 + "15qgaiz3vx2r4ww3bb1x6pafg4nh275kxvyx0ppiby8r0qp27g6q")))) + (build-system python-build-system) + (propagated-inputs + `(("python-attrs" ,python-attrs) + ("python-attrs-strict" ,python-attrs-strict) + ("python-dateutil" ,python-dateutil) + ("python-hypothesis" ,python-hypothesis) + ("python-iso8601" ,python-iso8601) + ("python-pyblake2" ,python-pyblake2) + ("python-vcversioner" ,python-vcversioner))) + (native-inputs + `(("python-click" ,python-click) + ("python-dulwich" ,python-dulwich) + ("python-pytest" ,python-pytest) + ("python-pytz" ,python-pytz))) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda _ + (invoke "pytest")))))) + (home-page "https://forge.softwareheritage.org/diffusion/DMOD/") + (synopsis "Tools for Software Heritage data model") + (description + "This package implements the Data model of the Software Heritage project +used to archive source code artifacts. + +The module defines the notion of Persistent Identifier (PID) and provides +tools to compute them.") + (license license:gpl3))) -- 2.26.2