gnu: python-torchfile: Update to 0.1.0-0.fbd434a.

* gnu/packages/machine-learning.scm (python-torchfile): Update to 0.1.0-0.fbd434a.
[source]: Switch to git-fetch to obtain the latest changes and enable
tests.
[build-system]: Switch to pyproject-build-system.
[arguments]: Enable tests.
[propagated-inputs]: Add python-setuptools-next.

Change-Id: I02f94fa4e3b78fd1d3e8e3e80ce3f16fd56e38fa
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
This commit is contained in:
Cayetano Santos 2025-09-07 10:25:13 +02:00 committed by Sharlatan Hellseher
parent a1a378e4b4
commit 7b25b2332d
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -5899,24 +5899,37 @@ and common image transformations for computer vision.")
(license license:bsd-3)))
(define-public python-torchfile
(package
(name "python-torchfile")
(version "0.1.0")
(source (origin
(method url-fetch)
(uri (pypi-uri "torchfile" version))
(sha256
(base32
"0vhklj6krl9r0kdynb4kcpwp8y1ihl2zw96byallay3k9c9zwgd5"))))
(build-system python-build-system)
(arguments '(#:tests? #false)) ;there are no tests
(propagated-inputs
(list python-numpy))
(home-page "https://github.com/bshillingford/python-torchfile")
(synopsis "Torch7 binary serialized file parser")
(description "This package enables you to deserialize Lua torch-serialized objects from
Python.")
(license license:bsd-3)))
;; Latest release is nine years old.
(let ((commit "fbd434a5b5562c88b91a95e6476e11dbb7735436")
(revision "0"))
(package
(name "python-torchfile")
(version (git-version "0.1.0" revision commit))
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/bshillingford/python-torchfile/")
(commit commit)))
(file-name (git-file-name name version))
(sha256
(base32 "1f03ks5n3i3cdh16wx5ysxsxh0ai9vpf0k5pdx759vf31f4niz36"))))
(build-system pyproject-build-system)
(arguments
(list
#:phases
#~(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "python3" "tests.py")))))))
(propagated-inputs
(list python-numpy python-setuptools-next))
(home-page "https://github.com/bshillingford/python-torchfile")
(synopsis "Torch7 binary serialized file parser")
(description "This package enables you to deserialize Lua
torch-serialized objects from Python.")
(license license:bsd-3))))
(define-public python-geomloss
(package