mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
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:
parent
a1a378e4b4
commit
7b25b2332d
1 changed files with 31 additions and 18 deletions
|
@ -5899,24 +5899,37 @@ and common image transformations for computer vision.")
|
||||||
(license license:bsd-3)))
|
(license license:bsd-3)))
|
||||||
|
|
||||||
(define-public python-torchfile
|
(define-public python-torchfile
|
||||||
|
;; Latest release is nine years old.
|
||||||
|
(let ((commit "fbd434a5b5562c88b91a95e6476e11dbb7735436")
|
||||||
|
(revision "0"))
|
||||||
(package
|
(package
|
||||||
(name "python-torchfile")
|
(name "python-torchfile")
|
||||||
(version "0.1.0")
|
(version (git-version "0.1.0" revision commit))
|
||||||
(source (origin
|
(source
|
||||||
(method url-fetch)
|
(origin
|
||||||
(uri (pypi-uri "torchfile" version))
|
(method git-fetch)
|
||||||
|
(uri (git-reference
|
||||||
|
(url "https://github.com/bshillingford/python-torchfile/")
|
||||||
|
(commit commit)))
|
||||||
|
(file-name (git-file-name name version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32 "1f03ks5n3i3cdh16wx5ysxsxh0ai9vpf0k5pdx759vf31f4niz36"))))
|
||||||
"0vhklj6krl9r0kdynb4kcpwp8y1ihl2zw96byallay3k9c9zwgd5"))))
|
(build-system pyproject-build-system)
|
||||||
(build-system python-build-system)
|
(arguments
|
||||||
(arguments '(#:tests? #false)) ;there are no tests
|
(list
|
||||||
|
#:phases
|
||||||
|
#~(modify-phases %standard-phases
|
||||||
|
(replace 'check
|
||||||
|
(lambda* (#:key tests? #:allow-other-keys)
|
||||||
|
(when tests?
|
||||||
|
(invoke "python3" "tests.py")))))))
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
(list python-numpy))
|
(list python-numpy python-setuptools-next))
|
||||||
(home-page "https://github.com/bshillingford/python-torchfile")
|
(home-page "https://github.com/bshillingford/python-torchfile")
|
||||||
(synopsis "Torch7 binary serialized file parser")
|
(synopsis "Torch7 binary serialized file parser")
|
||||||
(description "This package enables you to deserialize Lua torch-serialized objects from
|
(description "This package enables you to deserialize Lua
|
||||||
Python.")
|
torch-serialized objects from Python.")
|
||||||
(license license:bsd-3)))
|
(license license:bsd-3))))
|
||||||
|
|
||||||
(define-public python-geomloss
|
(define-public python-geomloss
|
||||||
(package
|
(package
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue