From e3ecd73c97eccf93d2a6804bbcd4deccfaa79ccb Mon Sep 17 00:00:00 2001 From: Ghislain Vaillant Date: Fri, 31 Oct 2025 14:12:43 +0100 Subject: version-control: Add python-dvc-task. * guix-science/packages/version-control.scm (python-dvc-task): New variable. * guix-science/packages/version-control.scm: Import time. --- guix-science/packages/version-control.scm | 47 +++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/guix-science/packages/version-control.scm b/guix-science/packages/version-control.scm index 5c609b7..36935ea 100644 --- a/guix-science/packages/version-control.scm +++ b/guix-science/packages/version-control.scm @@ -13,6 +13,7 @@ #:use-module (gnu packages python-xyz) #:use-module (gnu packages serialization) #:use-module (gnu packages ssh) + #:use-module (gnu packages time) #:use-module (gnu packages version-control) #:use-module (guix build-system pyproject) #:use-module (guix gexp) @@ -250,6 +251,52 @@ MarkDown reports containing multiple plots.") (description "Client to interact with DVC Studio.") (license license:asl2.0))) +(define-public python-dvc-task + (package + (name "python-dvc-task") + (version "0.40.2") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/iterative/dvc-task") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0qbahr6dyl42nv2fmv8135qa3amlsjlbqrab7hc2h2iifwp0j53d")))) + (build-system pyproject-build-system) + (arguments + (list + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'patch-pyproject + (lambda _ + ;; Relax versioned requirements. + (substitute* "pyproject.toml" + (("\"funcy>=.*\"") + "\"funcy\"")))) + (add-before 'build 'set-version + (lambda _ + (setenv "SETUPTOOLS_SCM_PRETEND_VERSION" + #$version)))))) + (propagated-inputs (list python-celery python-funcy-1.14 python-kombu + python-shortuuid)) + (native-inputs (list python-dateutil + python-pytest + python-pytest-celery + python-pytest-cov + python-pytest-mock + python-pytest-rerunfailures + python-pytest-sugar + python-pytest-test-utils + python-setuptools + python-setuptools-scm + python-wheel)) + (home-page "https://dvc.org/") + (synopsis "Extensible task queue used in DVC") + (description "Extensible task queue used in DVC.") + (license license:asl2.0))) + (define-public python-gto (package (name "python-gto") -- cgit v1.2.3