You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

435 lines
16 KiB

gnu: Remove ".git" from "https://github/…/….git". Until now, 'lookup-origin' and thus 'lookup-origin-revision' in (guix swh) would sometimes return #f for these because the ".git" URLs are redirects to the non-".git" URLs. Consequently, 'guix lint -c archival' would keep saying "scheduled Software Heritage archival"; likewise, the fallback download code would fail. * gnu/packages/ada.scm, gnu/packages/admin.scm, gnu/packages/aidc.scm, gnu/packages/algebra.scm, gnu/packages/android.scm, gnu/packages/animation.scm, gnu/packages/arcan.scm, gnu/packages/assembly.scm, gnu/packages/audio.scm, gnu/packages/authentication.scm, gnu/packages/avr.scm, gnu/packages/axoloti.scm, gnu/packages/backup.scm, gnu/packages/bash.scm, gnu/packages/benchmark.scm, gnu/packages/bioconductor.scm, gnu/packages/bioinformatics.scm, gnu/packages/bittorrent.scm, gnu/packages/boost.scm, gnu/packages/build-tools.scm, gnu/packages/c.scm, gnu/packages/calendar.scm, gnu/packages/cdrom.scm, gnu/packages/check.scm, gnu/packages/chemistry.scm, gnu/packages/chez.scm, gnu/packages/clojure.scm, gnu/packages/code.scm, gnu/packages/compression.scm, gnu/packages/compton.scm, gnu/packages/coq.scm, gnu/packages/cpp.scm, gnu/packages/cran.scm, gnu/packages/crypto.scm, gnu/packages/curl.scm, gnu/packages/databases.scm, gnu/packages/datastructures.scm, gnu/packages/debug.scm, gnu/packages/disk.scm, gnu/packages/distributed.scm, gnu/packages/django.scm, gnu/packages/dlang.scm, gnu/packages/dns.scm, gnu/packages/docker.scm, gnu/packages/education.scm, gnu/packages/efi.scm, gnu/packages/elixir.scm, gnu/packages/emacs-xyz.scm, gnu/packages/embedded.scm, gnu/packages/emulators.scm, gnu/packages/engineering.scm, gnu/packages/erlang.scm, gnu/packages/fabric-management.scm, gnu/packages/file-systems.scm, gnu/packages/finance.scm, gnu/packages/firmware.scm, gnu/packages/flashing-tools.scm, gnu/packages/fonts.scm, gnu/packages/fontutils.scm, gnu/packages/fpga.scm, gnu/packages/game-development.scm, gnu/packages/games.scm, gnu/packages/genealogy.scm, gnu/packages/genimage.scm, gnu/packages/geo.scm, gnu/packages/gimp.scm, gnu/packages/gl.scm, gnu/packages/gnome-xyz.scm, gnu/packages/gnome.scm, gnu/packages/gnuzilla.scm, gnu/packages/golang.scm, gnu/packages/gpodder.scm, gnu/packages/graph.scm, gnu/packages/graphics.scm, gnu/packages/graphviz.scm, gnu/packages/groff.scm, gnu/packages/groovy.scm, gnu/packages/gtk.scm, gnu/packages/guile-xyz.scm, gnu/packages/guile.scm, gnu/packages/hardware.scm, gnu/packages/haskell-apps.scm, gnu/packages/haskell-xyz.scm, gnu/packages/hexedit.scm, gnu/packages/i2p.scm, gnu/packages/ibus.scm, gnu/packages/image-processing.scm, gnu/packages/image-viewers.scm, gnu/packages/image.scm, gnu/packages/ipfs.scm, gnu/packages/java-graphics.scm, gnu/packages/java-maths.scm, gnu/packages/java.scm, gnu/packages/javascript.scm, gnu/packages/jrnl.scm, gnu/packages/julia.scm, gnu/packages/jupyter.scm, gnu/packages/kodi.scm, gnu/packages/language.scm, gnu/packages/lego.scm, gnu/packages/less.scm, gnu/packages/libusb.scm, gnu/packages/linux.scm, gnu/packages/lirc.scm, gnu/packages/lisp-xyz.scm, gnu/packages/llvm.scm, gnu/packages/logging.scm, gnu/packages/lolcode.scm, gnu/packages/lua.scm, gnu/packages/lxde.scm, gnu/packages/lxqt.scm, gnu/packages/machine-learning.scm, gnu/packages/mail.scm, gnu/packages/markup.scm, gnu/packages/maths.scm, gnu/packages/maven.scm, gnu/packages/mes.scm, gnu/packages/messaging.scm, gnu/packages/monitoring.scm, gnu/packages/mpd.scm, gnu/packages/music.scm, gnu/packages/networking.scm, gnu/packages/node-xyz.scm, gnu/packages/ocaml.scm, gnu/packages/ocr.scm, gnu/packages/onc-rpc.scm, gnu/packages/opencl.scm, gnu/packages/opencog.scm, gnu/packages/pantheon.scm, gnu/packages/password-utils.scm, gnu/packages/patchutils.scm, gnu/packages/pdf.scm, gnu/packages/perl6.scm, gnu/packages/phabricator.scm, gnu/packages/popt.scm, gnu/packages/printers.scm, gnu/packages/prolog.scm, gnu/packages/protobuf.scm, gnu/packages/pulseaudio.scm, gnu/packages/python-crypto.scm, gnu/packages/python-web.scm, gnu/packages/python-xyz.scm, gnu/packages/qt.scm, gnu/packages/radio.scm, gnu/packages/rails.scm, gnu/packages/rdf.scm, gnu/packages/rednotebook.scm, gnu/packages/rpc.scm, gnu/packages/rsync.scm, gnu/packages/ruby.scm, gnu/packages/rust.scm, gnu/packages/scheme.scm, gnu/packages/screen.scm, gnu/packages/security-token.scm, gnu/packages/selinux.scm, gnu/packages/serialization.scm, gnu/packages/shells.scm, gnu/packages/shellutils.scm, gnu/packages/simh.scm, gnu/packages/sml.scm, gnu/packages/ssh.scm, gnu/packages/statistics.scm, gnu/packages/stenography.scm, gnu/packages/sync.scm, gnu/packages/syncthing.scm, gnu/packages/synergy.scm, gnu/packages/telephony.scm, gnu/packages/terminals.scm, gnu/packages/tex.scm, gnu/packages/texinfo.scm, gnu/packages/text-editors.scm, gnu/packages/textutils.scm, gnu/packages/time.scm, gnu/packages/tmux.scm, gnu/packages/tor.scm, gnu/packages/toys.scm, gnu/packages/version-control.scm, gnu/packages/video.scm, gnu/packages/vim.scm, gnu/packages/virtualization.scm, gnu/packages/vlang.scm, gnu/packages/vnc.scm, gnu/packages/vpn.scm, gnu/packages/web-browsers.scm, gnu/packages/web.scm, gnu/packages/wireservice.scm, gnu/packages/wm.scm, gnu/packages/wxwidgets.scm, gnu/packages/xdisorg.scm, gnu/packages/xml.scm, gnu/packages/xorg.scm, tests/lint.scm: Remove trailing ".git" from 'git-reference' URL.
1 year ago
gnu: Remove ".git" from "https://github/…/….git". Until now, 'lookup-origin' and thus 'lookup-origin-revision' in (guix swh) would sometimes return #f for these because the ".git" URLs are redirects to the non-".git" URLs. Consequently, 'guix lint -c archival' would keep saying "scheduled Software Heritage archival"; likewise, the fallback download code would fail. * gnu/packages/ada.scm, gnu/packages/admin.scm, gnu/packages/aidc.scm, gnu/packages/algebra.scm, gnu/packages/android.scm, gnu/packages/animation.scm, gnu/packages/arcan.scm, gnu/packages/assembly.scm, gnu/packages/audio.scm, gnu/packages/authentication.scm, gnu/packages/avr.scm, gnu/packages/axoloti.scm, gnu/packages/backup.scm, gnu/packages/bash.scm, gnu/packages/benchmark.scm, gnu/packages/bioconductor.scm, gnu/packages/bioinformatics.scm, gnu/packages/bittorrent.scm, gnu/packages/boost.scm, gnu/packages/build-tools.scm, gnu/packages/c.scm, gnu/packages/calendar.scm, gnu/packages/cdrom.scm, gnu/packages/check.scm, gnu/packages/chemistry.scm, gnu/packages/chez.scm, gnu/packages/clojure.scm, gnu/packages/code.scm, gnu/packages/compression.scm, gnu/packages/compton.scm, gnu/packages/coq.scm, gnu/packages/cpp.scm, gnu/packages/cran.scm, gnu/packages/crypto.scm, gnu/packages/curl.scm, gnu/packages/databases.scm, gnu/packages/datastructures.scm, gnu/packages/debug.scm, gnu/packages/disk.scm, gnu/packages/distributed.scm, gnu/packages/django.scm, gnu/packages/dlang.scm, gnu/packages/dns.scm, gnu/packages/docker.scm, gnu/packages/education.scm, gnu/packages/efi.scm, gnu/packages/elixir.scm, gnu/packages/emacs-xyz.scm, gnu/packages/embedded.scm, gnu/packages/emulators.scm, gnu/packages/engineering.scm, gnu/packages/erlang.scm, gnu/packages/fabric-management.scm, gnu/packages/file-systems.scm, gnu/packages/finance.scm, gnu/packages/firmware.scm, gnu/packages/flashing-tools.scm, gnu/packages/fonts.scm, gnu/packages/fontutils.scm, gnu/packages/fpga.scm, gnu/packages/game-development.scm, gnu/packages/games.scm, gnu/packages/genealogy.scm, gnu/packages/genimage.scm, gnu/packages/geo.scm, gnu/packages/gimp.scm, gnu/packages/gl.scm, gnu/packages/gnome-xyz.scm, gnu/packages/gnome.scm, gnu/packages/gnuzilla.scm, gnu/packages/golang.scm, gnu/packages/gpodder.scm, gnu/packages/graph.scm, gnu/packages/graphics.scm, gnu/packages/graphviz.scm, gnu/packages/groff.scm, gnu/packages/groovy.scm, gnu/packages/gtk.scm, gnu/packages/guile-xyz.scm, gnu/packages/guile.scm, gnu/packages/hardware.scm, gnu/packages/haskell-apps.scm, gnu/packages/haskell-xyz.scm, gnu/packages/hexedit.scm, gnu/packages/i2p.scm, gnu/packages/ibus.scm, gnu/packages/image-processing.scm, gnu/packages/image-viewers.scm, gnu/packages/image.scm, gnu/packages/ipfs.scm, gnu/packages/java-graphics.scm, gnu/packages/java-maths.scm, gnu/packages/java.scm, gnu/packages/javascript.scm, gnu/packages/jrnl.scm, gnu/packages/julia.scm, gnu/packages/jupyter.scm, gnu/packages/kodi.scm, gnu/packages/language.scm, gnu/packages/lego.scm, gnu/packages/less.scm, gnu/packages/libusb.scm, gnu/packages/linux.scm, gnu/packages/lirc.scm, gnu/packages/lisp-xyz.scm, gnu/packages/llvm.scm, gnu/packages/logging.scm, gnu/packages/lolcode.scm, gnu/packages/lua.scm, gnu/packages/lxde.scm, gnu/packages/lxqt.scm, gnu/packages/machine-learning.scm, gnu/packages/mail.scm, gnu/packages/markup.scm, gnu/packages/maths.scm, gnu/packages/maven.scm, gnu/packages/mes.scm, gnu/packages/messaging.scm, gnu/packages/monitoring.scm, gnu/packages/mpd.scm, gnu/packages/music.scm, gnu/packages/networking.scm, gnu/packages/node-xyz.scm, gnu/packages/ocaml.scm, gnu/packages/ocr.scm, gnu/packages/onc-rpc.scm, gnu/packages/opencl.scm, gnu/packages/opencog.scm, gnu/packages/pantheon.scm, gnu/packages/password-utils.scm, gnu/packages/patchutils.scm, gnu/packages/pdf.scm, gnu/packages/perl6.scm, gnu/packages/phabricator.scm, gnu/packages/popt.scm, gnu/packages/printers.scm, gnu/packages/prolog.scm, gnu/packages/protobuf.scm, gnu/packages/pulseaudio.scm, gnu/packages/python-crypto.scm, gnu/packages/python-web.scm, gnu/packages/python-xyz.scm, gnu/packages/qt.scm, gnu/packages/radio.scm, gnu/packages/rails.scm, gnu/packages/rdf.scm, gnu/packages/rednotebook.scm, gnu/packages/rpc.scm, gnu/packages/rsync.scm, gnu/packages/ruby.scm, gnu/packages/rust.scm, gnu/packages/scheme.scm, gnu/packages/screen.scm, gnu/packages/security-token.scm, gnu/packages/selinux.scm, gnu/packages/serialization.scm, gnu/packages/shells.scm, gnu/packages/shellutils.scm, gnu/packages/simh.scm, gnu/packages/sml.scm, gnu/packages/ssh.scm, gnu/packages/statistics.scm, gnu/packages/stenography.scm, gnu/packages/sync.scm, gnu/packages/syncthing.scm, gnu/packages/synergy.scm, gnu/packages/telephony.scm, gnu/packages/terminals.scm, gnu/packages/tex.scm, gnu/packages/texinfo.scm, gnu/packages/text-editors.scm, gnu/packages/textutils.scm, gnu/packages/time.scm, gnu/packages/tmux.scm, gnu/packages/tor.scm, gnu/packages/toys.scm, gnu/packages/version-control.scm, gnu/packages/video.scm, gnu/packages/vim.scm, gnu/packages/virtualization.scm, gnu/packages/vlang.scm, gnu/packages/vnc.scm, gnu/packages/vpn.scm, gnu/packages/web-browsers.scm, gnu/packages/web.scm, gnu/packages/wireservice.scm, gnu/packages/wm.scm, gnu/packages/wxwidgets.scm, gnu/packages/xdisorg.scm, gnu/packages/xml.scm, gnu/packages/xorg.scm, tests/lint.scm: Remove trailing ".git" from 'git-reference' URL.
1 year ago
gnu: Remove ".git" from "https://github/…/….git". Until now, 'lookup-origin' and thus 'lookup-origin-revision' in (guix swh) would sometimes return #f for these because the ".git" URLs are redirects to the non-".git" URLs. Consequently, 'guix lint -c archival' would keep saying "scheduled Software Heritage archival"; likewise, the fallback download code would fail. * gnu/packages/ada.scm, gnu/packages/admin.scm, gnu/packages/aidc.scm, gnu/packages/algebra.scm, gnu/packages/android.scm, gnu/packages/animation.scm, gnu/packages/arcan.scm, gnu/packages/assembly.scm, gnu/packages/audio.scm, gnu/packages/authentication.scm, gnu/packages/avr.scm, gnu/packages/axoloti.scm, gnu/packages/backup.scm, gnu/packages/bash.scm, gnu/packages/benchmark.scm, gnu/packages/bioconductor.scm, gnu/packages/bioinformatics.scm, gnu/packages/bittorrent.scm, gnu/packages/boost.scm, gnu/packages/build-tools.scm, gnu/packages/c.scm, gnu/packages/calendar.scm, gnu/packages/cdrom.scm, gnu/packages/check.scm, gnu/packages/chemistry.scm, gnu/packages/chez.scm, gnu/packages/clojure.scm, gnu/packages/code.scm, gnu/packages/compression.scm, gnu/packages/compton.scm, gnu/packages/coq.scm, gnu/packages/cpp.scm, gnu/packages/cran.scm, gnu/packages/crypto.scm, gnu/packages/curl.scm, gnu/packages/databases.scm, gnu/packages/datastructures.scm, gnu/packages/debug.scm, gnu/packages/disk.scm, gnu/packages/distributed.scm, gnu/packages/django.scm, gnu/packages/dlang.scm, gnu/packages/dns.scm, gnu/packages/docker.scm, gnu/packages/education.scm, gnu/packages/efi.scm, gnu/packages/elixir.scm, gnu/packages/emacs-xyz.scm, gnu/packages/embedded.scm, gnu/packages/emulators.scm, gnu/packages/engineering.scm, gnu/packages/erlang.scm, gnu/packages/fabric-management.scm, gnu/packages/file-systems.scm, gnu/packages/finance.scm, gnu/packages/firmware.scm, gnu/packages/flashing-tools.scm, gnu/packages/fonts.scm, gnu/packages/fontutils.scm, gnu/packages/fpga.scm, gnu/packages/game-development.scm, gnu/packages/games.scm, gnu/packages/genealogy.scm, gnu/packages/genimage.scm, gnu/packages/geo.scm, gnu/packages/gimp.scm, gnu/packages/gl.scm, gnu/packages/gnome-xyz.scm, gnu/packages/gnome.scm, gnu/packages/gnuzilla.scm, gnu/packages/golang.scm, gnu/packages/gpodder.scm, gnu/packages/graph.scm, gnu/packages/graphics.scm, gnu/packages/graphviz.scm, gnu/packages/groff.scm, gnu/packages/groovy.scm, gnu/packages/gtk.scm, gnu/packages/guile-xyz.scm, gnu/packages/guile.scm, gnu/packages/hardware.scm, gnu/packages/haskell-apps.scm, gnu/packages/haskell-xyz.scm, gnu/packages/hexedit.scm, gnu/packages/i2p.scm, gnu/packages/ibus.scm, gnu/packages/image-processing.scm, gnu/packages/image-viewers.scm, gnu/packages/image.scm, gnu/packages/ipfs.scm, gnu/packages/java-graphics.scm, gnu/packages/java-maths.scm, gnu/packages/java.scm, gnu/packages/javascript.scm, gnu/packages/jrnl.scm, gnu/packages/julia.scm, gnu/packages/jupyter.scm, gnu/packages/kodi.scm, gnu/packages/language.scm, gnu/packages/lego.scm, gnu/packages/less.scm, gnu/packages/libusb.scm, gnu/packages/linux.scm, gnu/packages/lirc.scm, gnu/packages/lisp-xyz.scm, gnu/packages/llvm.scm, gnu/packages/logging.scm, gnu/packages/lolcode.scm, gnu/packages/lua.scm, gnu/packages/lxde.scm, gnu/packages/lxqt.scm, gnu/packages/machine-learning.scm, gnu/packages/mail.scm, gnu/packages/markup.scm, gnu/packages/maths.scm, gnu/packages/maven.scm, gnu/packages/mes.scm, gnu/packages/messaging.scm, gnu/packages/monitoring.scm, gnu/packages/mpd.scm, gnu/packages/music.scm, gnu/packages/networking.scm, gnu/packages/node-xyz.scm, gnu/packages/ocaml.scm, gnu/packages/ocr.scm, gnu/packages/onc-rpc.scm, gnu/packages/opencl.scm, gnu/packages/opencog.scm, gnu/packages/pantheon.scm, gnu/packages/password-utils.scm, gnu/packages/patchutils.scm, gnu/packages/pdf.scm, gnu/packages/perl6.scm, gnu/packages/phabricator.scm, gnu/packages/popt.scm, gnu/packages/printers.scm, gnu/packages/prolog.scm, gnu/packages/protobuf.scm, gnu/packages/pulseaudio.scm, gnu/packages/python-crypto.scm, gnu/packages/python-web.scm, gnu/packages/python-xyz.scm, gnu/packages/qt.scm, gnu/packages/radio.scm, gnu/packages/rails.scm, gnu/packages/rdf.scm, gnu/packages/rednotebook.scm, gnu/packages/rpc.scm, gnu/packages/rsync.scm, gnu/packages/ruby.scm, gnu/packages/rust.scm, gnu/packages/scheme.scm, gnu/packages/screen.scm, gnu/packages/security-token.scm, gnu/packages/selinux.scm, gnu/packages/serialization.scm, gnu/packages/shells.scm, gnu/packages/shellutils.scm, gnu/packages/simh.scm, gnu/packages/sml.scm, gnu/packages/ssh.scm, gnu/packages/statistics.scm, gnu/packages/stenography.scm, gnu/packages/sync.scm, gnu/packages/syncthing.scm, gnu/packages/synergy.scm, gnu/packages/telephony.scm, gnu/packages/terminals.scm, gnu/packages/tex.scm, gnu/packages/texinfo.scm, gnu/packages/text-editors.scm, gnu/packages/textutils.scm, gnu/packages/time.scm, gnu/packages/tmux.scm, gnu/packages/tor.scm, gnu/packages/toys.scm, gnu/packages/version-control.scm, gnu/packages/video.scm, gnu/packages/vim.scm, gnu/packages/virtualization.scm, gnu/packages/vlang.scm, gnu/packages/vnc.scm, gnu/packages/vpn.scm, gnu/packages/web-browsers.scm, gnu/packages/web.scm, gnu/packages/wireservice.scm, gnu/packages/wm.scm, gnu/packages/wxwidgets.scm, gnu/packages/xdisorg.scm, gnu/packages/xml.scm, gnu/packages/xorg.scm, tests/lint.scm: Remove trailing ".git" from 'git-reference' URL.
1 year ago
gnu: Remove ".git" from "https://github/…/….git". Until now, 'lookup-origin' and thus 'lookup-origin-revision' in (guix swh) would sometimes return #f for these because the ".git" URLs are redirects to the non-".git" URLs. Consequently, 'guix lint -c archival' would keep saying "scheduled Software Heritage archival"; likewise, the fallback download code would fail. * gnu/packages/ada.scm, gnu/packages/admin.scm, gnu/packages/aidc.scm, gnu/packages/algebra.scm, gnu/packages/android.scm, gnu/packages/animation.scm, gnu/packages/arcan.scm, gnu/packages/assembly.scm, gnu/packages/audio.scm, gnu/packages/authentication.scm, gnu/packages/avr.scm, gnu/packages/axoloti.scm, gnu/packages/backup.scm, gnu/packages/bash.scm, gnu/packages/benchmark.scm, gnu/packages/bioconductor.scm, gnu/packages/bioinformatics.scm, gnu/packages/bittorrent.scm, gnu/packages/boost.scm, gnu/packages/build-tools.scm, gnu/packages/c.scm, gnu/packages/calendar.scm, gnu/packages/cdrom.scm, gnu/packages/check.scm, gnu/packages/chemistry.scm, gnu/packages/chez.scm, gnu/packages/clojure.scm, gnu/packages/code.scm, gnu/packages/compression.scm, gnu/packages/compton.scm, gnu/packages/coq.scm, gnu/packages/cpp.scm, gnu/packages/cran.scm, gnu/packages/crypto.scm, gnu/packages/curl.scm, gnu/packages/databases.scm, gnu/packages/datastructures.scm, gnu/packages/debug.scm, gnu/packages/disk.scm, gnu/packages/distributed.scm, gnu/packages/django.scm, gnu/packages/dlang.scm, gnu/packages/dns.scm, gnu/packages/docker.scm, gnu/packages/education.scm, gnu/packages/efi.scm, gnu/packages/elixir.scm, gnu/packages/emacs-xyz.scm, gnu/packages/embedded.scm, gnu/packages/emulators.scm, gnu/packages/engineering.scm, gnu/packages/erlang.scm, gnu/packages/fabric-management.scm, gnu/packages/file-systems.scm, gnu/packages/finance.scm, gnu/packages/firmware.scm, gnu/packages/flashing-tools.scm, gnu/packages/fonts.scm, gnu/packages/fontutils.scm, gnu/packages/fpga.scm, gnu/packages/game-development.scm, gnu/packages/games.scm, gnu/packages/genealogy.scm, gnu/packages/genimage.scm, gnu/packages/geo.scm, gnu/packages/gimp.scm, gnu/packages/gl.scm, gnu/packages/gnome-xyz.scm, gnu/packages/gnome.scm, gnu/packages/gnuzilla.scm, gnu/packages/golang.scm, gnu/packages/gpodder.scm, gnu/packages/graph.scm, gnu/packages/graphics.scm, gnu/packages/graphviz.scm, gnu/packages/groff.scm, gnu/packages/groovy.scm, gnu/packages/gtk.scm, gnu/packages/guile-xyz.scm, gnu/packages/guile.scm, gnu/packages/hardware.scm, gnu/packages/haskell-apps.scm, gnu/packages/haskell-xyz.scm, gnu/packages/hexedit.scm, gnu/packages/i2p.scm, gnu/packages/ibus.scm, gnu/packages/image-processing.scm, gnu/packages/image-viewers.scm, gnu/packages/image.scm, gnu/packages/ipfs.scm, gnu/packages/java-graphics.scm, gnu/packages/java-maths.scm, gnu/packages/java.scm, gnu/packages/javascript.scm, gnu/packages/jrnl.scm, gnu/packages/julia.scm, gnu/packages/jupyter.scm, gnu/packages/kodi.scm, gnu/packages/language.scm, gnu/packages/lego.scm, gnu/packages/less.scm, gnu/packages/libusb.scm, gnu/packages/linux.scm, gnu/packages/lirc.scm, gnu/packages/lisp-xyz.scm, gnu/packages/llvm.scm, gnu/packages/logging.scm, gnu/packages/lolcode.scm, gnu/packages/lua.scm, gnu/packages/lxde.scm, gnu/packages/lxqt.scm, gnu/packages/machine-learning.scm, gnu/packages/mail.scm, gnu/packages/markup.scm, gnu/packages/maths.scm, gnu/packages/maven.scm, gnu/packages/mes.scm, gnu/packages/messaging.scm, gnu/packages/monitoring.scm, gnu/packages/mpd.scm, gnu/packages/music.scm, gnu/packages/networking.scm, gnu/packages/node-xyz.scm, gnu/packages/ocaml.scm, gnu/packages/ocr.scm, gnu/packages/onc-rpc.scm, gnu/packages/opencl.scm, gnu/packages/opencog.scm, gnu/packages/pantheon.scm, gnu/packages/password-utils.scm, gnu/packages/patchutils.scm, gnu/packages/pdf.scm, gnu/packages/perl6.scm, gnu/packages/phabricator.scm, gnu/packages/popt.scm, gnu/packages/printers.scm, gnu/packages/prolog.scm, gnu/packages/protobuf.scm, gnu/packages/pulseaudio.scm, gnu/packages/python-crypto.scm, gnu/packages/python-web.scm, gnu/packages/python-xyz.scm, gnu/packages/qt.scm, gnu/packages/radio.scm, gnu/packages/rails.scm, gnu/packages/rdf.scm, gnu/packages/rednotebook.scm, gnu/packages/rpc.scm, gnu/packages/rsync.scm, gnu/packages/ruby.scm, gnu/packages/rust.scm, gnu/packages/scheme.scm, gnu/packages/screen.scm, gnu/packages/security-token.scm, gnu/packages/selinux.scm, gnu/packages/serialization.scm, gnu/packages/shells.scm, gnu/packages/shellutils.scm, gnu/packages/simh.scm, gnu/packages/sml.scm, gnu/packages/ssh.scm, gnu/packages/statistics.scm, gnu/packages/stenography.scm, gnu/packages/sync.scm, gnu/packages/syncthing.scm, gnu/packages/synergy.scm, gnu/packages/telephony.scm, gnu/packages/terminals.scm, gnu/packages/tex.scm, gnu/packages/texinfo.scm, gnu/packages/text-editors.scm, gnu/packages/textutils.scm, gnu/packages/time.scm, gnu/packages/tmux.scm, gnu/packages/tor.scm, gnu/packages/toys.scm, gnu/packages/version-control.scm, gnu/packages/video.scm, gnu/packages/vim.scm, gnu/packages/virtualization.scm, gnu/packages/vlang.scm, gnu/packages/vnc.scm, gnu/packages/vpn.scm, gnu/packages/web-browsers.scm, gnu/packages/web.scm, gnu/packages/wireservice.scm, gnu/packages/wm.scm, gnu/packages/wxwidgets.scm, gnu/packages/xdisorg.scm, gnu/packages/xml.scm, gnu/packages/xorg.scm, tests/lint.scm: Remove trailing ".git" from 'git-reference' URL.
1 year ago
gnu: Remove ".git" from "https://github/…/….git". Until now, 'lookup-origin' and thus 'lookup-origin-revision' in (guix swh) would sometimes return #f for these because the ".git" URLs are redirects to the non-".git" URLs. Consequently, 'guix lint -c archival' would keep saying "scheduled Software Heritage archival"; likewise, the fallback download code would fail. * gnu/packages/ada.scm, gnu/packages/admin.scm, gnu/packages/aidc.scm, gnu/packages/algebra.scm, gnu/packages/android.scm, gnu/packages/animation.scm, gnu/packages/arcan.scm, gnu/packages/assembly.scm, gnu/packages/audio.scm, gnu/packages/authentication.scm, gnu/packages/avr.scm, gnu/packages/axoloti.scm, gnu/packages/backup.scm, gnu/packages/bash.scm, gnu/packages/benchmark.scm, gnu/packages/bioconductor.scm, gnu/packages/bioinformatics.scm, gnu/packages/bittorrent.scm, gnu/packages/boost.scm, gnu/packages/build-tools.scm, gnu/packages/c.scm, gnu/packages/calendar.scm, gnu/packages/cdrom.scm, gnu/packages/check.scm, gnu/packages/chemistry.scm, gnu/packages/chez.scm, gnu/packages/clojure.scm, gnu/packages/code.scm, gnu/packages/compression.scm, gnu/packages/compton.scm, gnu/packages/coq.scm, gnu/packages/cpp.scm, gnu/packages/cran.scm, gnu/packages/crypto.scm, gnu/packages/curl.scm, gnu/packages/databases.scm, gnu/packages/datastructures.scm, gnu/packages/debug.scm, gnu/packages/disk.scm, gnu/packages/distributed.scm, gnu/packages/django.scm, gnu/packages/dlang.scm, gnu/packages/dns.scm, gnu/packages/docker.scm, gnu/packages/education.scm, gnu/packages/efi.scm, gnu/packages/elixir.scm, gnu/packages/emacs-xyz.scm, gnu/packages/embedded.scm, gnu/packages/emulators.scm, gnu/packages/engineering.scm, gnu/packages/erlang.scm, gnu/packages/fabric-management.scm, gnu/packages/file-systems.scm, gnu/packages/finance.scm, gnu/packages/firmware.scm, gnu/packages/flashing-tools.scm, gnu/packages/fonts.scm, gnu/packages/fontutils.scm, gnu/packages/fpga.scm, gnu/packages/game-development.scm, gnu/packages/games.scm, gnu/packages/genealogy.scm, gnu/packages/genimage.scm, gnu/packages/geo.scm, gnu/packages/gimp.scm, gnu/packages/gl.scm, gnu/packages/gnome-xyz.scm, gnu/packages/gnome.scm, gnu/packages/gnuzilla.scm, gnu/packages/golang.scm, gnu/packages/gpodder.scm, gnu/packages/graph.scm, gnu/packages/graphics.scm, gnu/packages/graphviz.scm, gnu/packages/groff.scm, gnu/packages/groovy.scm, gnu/packages/gtk.scm, gnu/packages/guile-xyz.scm, gnu/packages/guile.scm, gnu/packages/hardware.scm, gnu/packages/haskell-apps.scm, gnu/packages/haskell-xyz.scm, gnu/packages/hexedit.scm, gnu/packages/i2p.scm, gnu/packages/ibus.scm, gnu/packages/image-processing.scm, gnu/packages/image-viewers.scm, gnu/packages/image.scm, gnu/packages/ipfs.scm, gnu/packages/java-graphics.scm, gnu/packages/java-maths.scm, gnu/packages/java.scm, gnu/packages/javascript.scm, gnu/packages/jrnl.scm, gnu/packages/julia.scm, gnu/packages/jupyter.scm, gnu/packages/kodi.scm, gnu/packages/language.scm, gnu/packages/lego.scm, gnu/packages/less.scm, gnu/packages/libusb.scm, gnu/packages/linux.scm, gnu/packages/lirc.scm, gnu/packages/lisp-xyz.scm, gnu/packages/llvm.scm, gnu/packages/logging.scm, gnu/packages/lolcode.scm, gnu/packages/lua.scm, gnu/packages/lxde.scm, gnu/packages/lxqt.scm, gnu/packages/machine-learning.scm, gnu/packages/mail.scm, gnu/packages/markup.scm, gnu/packages/maths.scm, gnu/packages/maven.scm, gnu/packages/mes.scm, gnu/packages/messaging.scm, gnu/packages/monitoring.scm, gnu/packages/mpd.scm, gnu/packages/music.scm, gnu/packages/networking.scm, gnu/packages/node-xyz.scm, gnu/packages/ocaml.scm, gnu/packages/ocr.scm, gnu/packages/onc-rpc.scm, gnu/packages/opencl.scm, gnu/packages/opencog.scm, gnu/packages/pantheon.scm, gnu/packages/password-utils.scm, gnu/packages/patchutils.scm, gnu/packages/pdf.scm, gnu/packages/perl6.scm, gnu/packages/phabricator.scm, gnu/packages/popt.scm, gnu/packages/printers.scm, gnu/packages/prolog.scm, gnu/packages/protobuf.scm, gnu/packages/pulseaudio.scm, gnu/packages/python-crypto.scm, gnu/packages/python-web.scm, gnu/packages/python-xyz.scm, gnu/packages/qt.scm, gnu/packages/radio.scm, gnu/packages/rails.scm, gnu/packages/rdf.scm, gnu/packages/rednotebook.scm, gnu/packages/rpc.scm, gnu/packages/rsync.scm, gnu/packages/ruby.scm, gnu/packages/rust.scm, gnu/packages/scheme.scm, gnu/packages/screen.scm, gnu/packages/security-token.scm, gnu/packages/selinux.scm, gnu/packages/serialization.scm, gnu/packages/shells.scm, gnu/packages/shellutils.scm, gnu/packages/simh.scm, gnu/packages/sml.scm, gnu/packages/ssh.scm, gnu/packages/statistics.scm, gnu/packages/stenography.scm, gnu/packages/sync.scm, gnu/packages/syncthing.scm, gnu/packages/synergy.scm, gnu/packages/telephony.scm, gnu/packages/terminals.scm, gnu/packages/tex.scm, gnu/packages/texinfo.scm, gnu/packages/text-editors.scm, gnu/packages/textutils.scm, gnu/packages/time.scm, gnu/packages/tmux.scm, gnu/packages/tor.scm, gnu/packages/toys.scm, gnu/packages/version-control.scm, gnu/packages/video.scm, gnu/packages/vim.scm, gnu/packages/virtualization.scm, gnu/packages/vlang.scm, gnu/packages/vnc.scm, gnu/packages/vpn.scm, gnu/packages/web-browsers.scm, gnu/packages/web.scm, gnu/packages/wireservice.scm, gnu/packages/wm.scm, gnu/packages/wxwidgets.scm, gnu/packages/xdisorg.scm, gnu/packages/xml.scm, gnu/packages/xorg.scm, tests/lint.scm: Remove trailing ".git" from 'git-reference' URL.
1 year ago
  1. ;;; GNU Guix --- Functional package management for GNU
  2. ;;; Copyright © 2018 Fis Trivial <ybbs.daans@hotmail.com>
  3. ;;; Copyright © 2018 Tobias Geerinckx-Rice <me@tobias.gr>
  4. ;;;
  5. ;;; This file is part of GNU Guix.
  6. ;;;
  7. ;;; GNU Guix is free software; you can redistribute it and/or modify it
  8. ;;; under the terms of the GNU General Public License as published by
  9. ;;; the Free Software Foundation; either version 3 of the License, or (at
  10. ;;; your option) any later version.
  11. ;;;
  12. ;;; GNU Guix is distributed in the hope that it will be useful, but
  13. ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
  14. ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. ;;; GNU General Public License for more details.
  16. ;;;
  17. ;;; You should have received a copy of the GNU General Public License
  18. ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
  19. (define-module (gnu packages opencl)
  20. #:use-module (guix build-system gnu)
  21. #:use-module (guix build-system cmake)
  22. #:use-module (guix build-system python)
  23. #:use-module (guix download)
  24. #:use-module (guix git-download)
  25. #:use-module ((guix licenses) #:prefix license:)
  26. #:use-module (guix packages)
  27. #:use-module (gnu packages)
  28. #:use-module (gnu packages autotools)
  29. #:use-module (gnu packages gl)
  30. #:use-module (gnu packages gnupg)
  31. #:use-module (gnu packages compression)
  32. #:use-module (gnu packages libedit)
  33. #:use-module (gnu packages llvm)
  34. #:use-module (gnu packages mpi)
  35. #:use-module (gnu packages ncurses)
  36. #:use-module (gnu packages pkg-config)
  37. #:use-module (gnu packages python)
  38. #:use-module (gnu packages python-xyz)
  39. #:use-module (gnu packages ruby)
  40. #:use-module (gnu packages video)
  41. #:use-module (gnu packages xdisorg)
  42. #:use-module (gnu packages xorg))
  43. ;; This file adds OpenCL implementation related packages. Due to the fact that
  44. ;; OpenCL devices like GPU are not available during build (store environment),
  45. ;; tests that require such devices are all disabled.
  46. ;; Check https://lists.gnu.org/archive/html/guix-devel/2018-04/msg00293.html
  47. (define (make-opencl-headers major-version subversion)
  48. (let ((commit "e986688daf750633898dfd3994e14a9e618f2aa5")
  49. (revision "0"))
  50. (package
  51. (name "opencl-headers")
  52. (version (git-version
  53. (string-append major-version "." subversion ".0")
  54. revision commit))
  55. (source (origin
  56. (method git-fetch)
  57. (uri (git-reference
  58. (url "https://github.com/KhronosGroup/OpenCL-Headers")
  59. (commit commit)))
  60. (file-name (git-file-name name version))
  61. (sha256
  62. (base32
  63. "176ydpbyws5nr4av6hf8p41pkhc0rc4m4vrah9w6gp2fw2i32838"))))
  64. (build-system gnu-build-system)
  65. (arguments
  66. `(#:phases
  67. (modify-phases %standard-phases
  68. (delete 'configure)
  69. (delete 'build)
  70. (delete 'check)
  71. (replace 'install
  72. (lambda* (#:key outputs #:allow-other-keys)
  73. (copy-recursively (string-append "./opencl" (string-append
  74. ,major-version
  75. ,subversion) "/CL")
  76. (string-append
  77. (assoc-ref outputs "out")
  78. "/include/CL")))))))
  79. (synopsis "The Khronos OpenCL headers")
  80. (description
  81. "This package provides the C headers by Khronos for OpenCL
  82. programming.")
  83. (home-page "https://www.khronos.org/registry/OpenCL/")
  84. (license license:expat))))
  85. (define-public opencl-headers-2.2
  86. (make-opencl-headers "2" "2"))
  87. (define-public opencl-headers-2.1
  88. (make-opencl-headers "2" "1"))
  89. (define-public opencl-headers-2.0
  90. (make-opencl-headers "2" "0"))
  91. (define-public opencl-headers-1.2
  92. (make-opencl-headers "1" "2"))
  93. (define-public opencl-headers-1.1
  94. (make-opencl-headers "1" "1"))
  95. (define-public opencl-headers-1.0
  96. (make-opencl-headers "1" "0"))
  97. (define-public opencl-headers opencl-headers-2.2)
  98. (define-public opencl-clhpp
  99. (package
  100. (name "opencl-clhpp")
  101. (version "2.0.10")
  102. (source
  103. (origin
  104. (method git-fetch)
  105. (uri (git-reference
  106. (url "https://github.com/KhronosGroup/OpenCL-CLHPP")
  107. (commit (string-append "v" version))))
  108. (sha256
  109. (base32 "0h5kpg5cl8wzfnqmv6i26aig2apv06ffm9p3rh35938n9r8rladm"))
  110. (file-name (git-file-name name version))))
  111. (native-inputs
  112. `(("python" ,python-wrapper)))
  113. (propagated-inputs
  114. `(("opencl-headers" ,opencl-headers)))
  115. (arguments
  116. `(#:configure-flags
  117. (let ((out (assoc-ref %outputs "out")))
  118. (list
  119. "-DBUILD_EXAMPLES=OFF"
  120. "-DBUILD_TESTS=OFF"
  121. (string-append "-DCMAKE_INSTALL_PREFIX="
  122. (assoc-ref %outputs "out")
  123. "/include")))
  124. ;; The regression tests require a lot more dependencies.
  125. #:tests? #f))
  126. (build-system cmake-build-system)
  127. (home-page "https://github.khronos.org/OpenCL-CLHPP/")
  128. (synopsis "Khronos OpenCL-CLHPP")
  129. (description
  130. "This package provides the @dfn{host API} C++ headers for OpenCL.")
  131. (license license:expat)))
  132. (define-public ocl-icd
  133. (package
  134. (name "ocl-icd")
  135. (version "2.2.12")
  136. (source (origin
  137. (method url-fetch)
  138. (uri (string-append
  139. "https://forge.imag.fr/frs/download.php/836/ocl-icd-"
  140. version ".tar.gz"))
  141. (file-name (string-append name "-" version ".tar.gz"))
  142. (sha256
  143. (base32
  144. "1x2dr8p4dkfds56r38av360i3nv1y3326jmshxvjngaf6mlg6rbn"))
  145. (modules '((guix build utils)))
  146. (snippet
  147. '(delete-file-recursively "khronos-headers"))))
  148. (native-inputs
  149. `(("opencl-headers" ,opencl-headers)
  150. ("ruby" ,ruby)))
  151. (inputs
  152. `(("libgcrypt" ,libgcrypt)))
  153. (build-system gnu-build-system)
  154. (arguments
  155. '(#:configure-flags '("DEBUG_OCL_ICD=1")))
  156. (native-search-paths
  157. (list (search-path-specification
  158. (variable "OPENCL_VENDOR_PATH")
  159. (files '("etc/OpenCL/vendors")))))
  160. (search-paths native-search-paths)
  161. (home-page "https://forge.imag.fr/projects/ocl-icd/")
  162. (synopsis "OpenCL loader for Installable Client Drivers (ICDs)")
  163. (description
  164. "OpenCL implementations are provided as ICDs (Installable Client
  165. Drivers). An OpenCL program can use several ICDs thanks to the use of an ICD
  166. Loader as provided by this package.")
  167. (license license:bsd-2)))
  168. (define-public clinfo
  169. (package
  170. (name "clinfo")
  171. (version "2.2.18.04.06")
  172. (source
  173. (origin
  174. (method git-fetch)
  175. (uri (git-reference
  176. (url "https://github.com/Oblomov/clinfo")
  177. (commit version)))
  178. (file-name (git-file-name name version))
  179. (sha256
  180. (base32 "0y2q0lz5yzxy970b7w7340vp4fl25vndahsyvvrywcrn51ipgplx"))))
  181. (build-system gnu-build-system)
  182. (native-inputs
  183. `(("opencl-headers" ,opencl-headers)))
  184. (inputs
  185. `(("ocl-icd" ,ocl-icd)))
  186. (arguments
  187. `(#:phases
  188. (modify-phases %standard-phases
  189. (delete 'configure)
  190. (replace 'build
  191. (lambda _
  192. (let ((cores (number->string (parallel-job-count))))
  193. (setenv "CC" "gcc")
  194. (invoke "make" "-j" cores))))
  195. (replace 'install
  196. (lambda* (#:key outputs #:allow-other-keys)
  197. (invoke "make" "install" (string-append
  198. "PREFIX="
  199. (assoc-ref outputs "out"))))))
  200. #:tests? #f))
  201. (home-page "https://github.com/Oblomov/clinfo")
  202. (synopsis "Print information about OpenCL platforms and devices")
  203. ;; Only the implementation installed via Guix will be detected.
  204. (description
  205. "This package provides the @command{clinfo} command that enumerates all
  206. possible (known) properties of the OpenCL platform and devices available on
  207. the system.")
  208. (license license:cc0)))
  209. (define-public beignet
  210. (package
  211. (name "beignet")
  212. (version "1.3.2")
  213. (source
  214. (origin
  215. (method git-fetch)
  216. (uri (git-reference
  217. (url "https://github.com/intel/beignet")
  218. (commit (string-append "Release_v" version))))
  219. (file-name (git-file-name name version))
  220. (sha256
  221. (base32 "0lpv3lvi2vrmzb8blflrpbd3jgin76zqmz6jcv17vn9mylqdrfnd"))
  222. (patches (search-patches "beignet-correct-file-names.patch"))
  223. (modules '((guix build utils)))
  224. (snippet
  225. ;; There's a suspicious .isa binary file under kernels/.
  226. ;; Remove it.
  227. '(for-each delete-file (find-files "." "\\.isa$")))))
  228. (native-inputs `(("pkg-config" ,pkg-config)
  229. ("python" ,python)))
  230. (inputs `(("clang@3.7" ,clang-3.7)
  231. ("clang-runtime@3.7" ,clang-runtime-3.7)
  232. ("glu" ,glu)
  233. ("llvm@3.7" ,llvm-3.7)
  234. ("libdrm" ,libdrm)
  235. ("libedit" ,libedit)
  236. ("libpthread-stubs" ,libpthread-stubs)
  237. ("libsm" ,libsm)
  238. ("libva" ,libva)
  239. ("libxfixes" ,libxfixes)
  240. ("libxext" ,libxext)
  241. ("mesa-utils" ,mesa-utils)
  242. ("ncurses" ,ncurses)
  243. ("ocl-icd" ,ocl-icd)
  244. ("opencl-headers" ,opencl-headers)
  245. ("xextproto" ,xextproto)
  246. ("zlib" ,zlib)))
  247. (build-system cmake-build-system)
  248. (arguments
  249. `(#:configure-flags
  250. (list (string-append "-DCLANG_LIBRARY_DIR="
  251. (assoc-ref %build-inputs "clang@3.7") "/lib")
  252. "-DENABLE_GL_SHARING=ON"
  253. "-DEXPERIMENTAL_DOUBLE=ON")
  254. #:phases
  255. (modify-phases %standard-phases
  256. (add-after 'install 'remove-headers
  257. (lambda* (#:key outputs #:allow-other-keys)
  258. (let ((out (assoc-ref outputs "out")))
  259. (delete-file-recursively
  260. (string-append out "/include"))
  261. #t)))
  262. (add-after 'remove-headers 'install-kernels
  263. (lambda* (#:key outputs #:allow-other-keys)
  264. (let* ((out (assoc-ref outputs "out"))
  265. (builddir (getcwd))
  266. (source-dir (string-append
  267. builddir
  268. "/../beignet-Release_v1.3.2/kernels")))
  269. (copy-recursively source-dir
  270. (string-append out "/lib/beignet/kernels"))
  271. #t))))
  272. ;; Beignet tries to find GPU when running tests, which is not available
  273. ;; during build.
  274. #:tests? #f))
  275. (home-page "https://wiki.freedesktop.org/www/Software/Beignet/")
  276. (synopsis "OpenCL framework for Intel GPUs")
  277. (description
  278. "Beignet is an implementation of the OpenCL specification. This code
  279. base contains the code to run OpenCL programs on Intel GPUs---IvyBridge,
  280. Haswell, Skylake, Apollolake, etc. It defines and implements the OpenCL host
  281. functions required to initialize the device, create the command queues, the
  282. kernels and the programs, and run them on the GPU. The code also contains a
  283. back-end for the LLVM compiler framework.")
  284. ;; Beignet only supports Intel processors.
  285. (supported-systems '("x86_64-linux" "i686-linux"))
  286. (license license:lgpl2.1+)))
  287. (define-public pocl
  288. (package
  289. (name "pocl")
  290. (version "1.4")
  291. (source
  292. (origin
  293. (method git-fetch)
  294. (uri (git-reference
  295. (url "https://github.com/pocl/pocl")
  296. (commit (string-append "v" version))))
  297. (sha256
  298. (base32 "1c4y69zks6hkq5fqh9waxgb8g4ka7y6h3vacmsm720kba0h57g8a"))
  299. (file-name (git-file-name name version))))
  300. (build-system cmake-build-system)
  301. (native-inputs
  302. `(("libltdl" ,libltdl)
  303. ("pkg-config" ,pkg-config)))
  304. (inputs
  305. `(("clang" ,clang)
  306. ("hwloc" ,hwloc-2 "lib")
  307. ("llvm" ,llvm)
  308. ("ocl-icd" ,ocl-icd)))
  309. (arguments
  310. `(#:configure-flags
  311. (list "-DENABLE_ICD=ON"
  312. "-DENABLE_TESTSUITES=ON"
  313. ;; We are not developers, don't run conformance suite.
  314. "-DENABLE_CONFORMANCE=OFF"
  315. (string-append "-DEXTRA_HOST_LD_FLAGS=-L"
  316. (assoc-ref %build-inputs "libc") "/lib"))
  317. #:phases
  318. (modify-phases %standard-phases
  319. (add-before 'check 'set-HOME
  320. (lambda _
  321. (setenv "HOME" "/tmp")
  322. #t)))))
  323. (home-page "http://portablecl.org/")
  324. (synopsis "Portable Computing Language (pocl), an OpenCL implementation")
  325. (description
  326. "Pocl is a portable implementation of the OpenCL standard (1.2 with some
  327. 2.0 features supported). This project seeks to improve performance
  328. portability of OpenCL programs with the kernel compiler and the task run-time,
  329. reducing the need for target-dependent manual optimizations.
  330. pocl uses Clang as an OpenCL C frontend and LLVM for kernel compiler
  331. implementation, and as a portability layer. Thus, if your desired target has
  332. an LLVM backend, it should be able to get OpenCL support easily by using
  333. pocl.")
  334. (license license:expat)))
  335. (define-public python-pytools
  336. (package
  337. (name "python-pytools")
  338. (version "2020.1")
  339. (source
  340. (origin
  341. (method url-fetch)
  342. (uri (pypi-uri "pytools" version))
  343. (sha256
  344. (base32
  345. "19h47pqfrq7ax7601i5g8icpb6b42h8zzwq0dqfdcjjqamwd2cn1"))))
  346. (build-system python-build-system)
  347. (propagated-inputs
  348. `(("python-appdirs" ,python-appdirs)
  349. ("python-decorator" ,python-decorator)
  350. ("python-numpy" ,python-numpy)
  351. ("python-six" ,python-six)
  352. ("python-mpi4py" ,python-mpi4py)))
  353. (home-page "https://pypi.org/project/pytools/")
  354. (synopsis "Assorted tools for Python")
  355. (description
  356. "Pytools is a bag of things that are ``missing'' from the Python standard
  357. library:
  358. @itemize
  359. @item
  360. small helper functions such as @code{len_iterable}, @code{argmin},
  361. tuple generation, permutation generation, ASCII table pretty printing,
  362. GvR's @code{monkeypatch_xxx} hack, the elusive @code{flatten}, and much more.
  363. @item
  364. Michele Simionato's decorator module
  365. @item
  366. A time-series logging module, @code{pytools.log}.
  367. @item
  368. Batch job submission, @code{pytools.batchjob}.
  369. @item
  370. A lexer, @code{pytools.lex}.
  371. @end itemize\n")
  372. (license license:expat)))
  373. (define-public python-pyopencl
  374. (package
  375. (name "python-pyopencl")
  376. (version "2019.1.1")
  377. (source
  378. (origin
  379. ;; The tarball on PyPI lacks test programs such as
  380. ;; 'pygpu_language_opencl.cpp' so fetch it from Git.
  381. ;; XXX: The server at git.tiker.net is unreliable.
  382. (method git-fetch)
  383. (uri (git-reference
  384. (url "http://git.tiker.net/trees/pyopencl.git")
  385. (commit (string-append "v" version))
  386. (recursive? #t)))
  387. (file-name (git-file-name name version))
  388. (sha256
  389. (base32
  390. "12q0rs8yla571vcfpsh0mfrjbdiayv0hi8r1rq0f178m3i3qjz80"))))
  391. (build-system python-build-system)
  392. (arguments
  393. '(#:phases (modify-phases %standard-phases
  394. (add-before 'build 'set-home
  395. (lambda _
  396. ;; Some of the Python build scripts expect 'HOME' to be
  397. ;; set.
  398. (setenv "HOME" (getcwd))
  399. #t)))
  400. ;; Tests in 'compyte/ndarray/setup_opencl.py' appear to rely on
  401. ;; 'nvcc', which is not an option.
  402. #:tests? #f))
  403. (inputs
  404. `(("opencl-headers" ,opencl-headers-1.2) ;POCL only supports OpenCL 1.2
  405. ("pybind11" ,pybind11)
  406. ("ocl-icd" ,ocl-icd))) ;libOpenCL
  407. (propagated-inputs
  408. `(("python-appdirs" ,python-appdirs)
  409. ("python-decorator" ,python-decorator)
  410. ("python-numpy" ,python-numpy)
  411. ("python-pytools" ,python-pytools)
  412. ("python-six" ,python-six)
  413. ("python-mako" ,python-mako)))
  414. (home-page "http://mathema.tician.de/software/pyopencl")
  415. (synopsis "Python wrapper for OpenCL")
  416. (description
  417. "PyOpenCL lets you access parallel computing devices such as GPUs from
  418. Python @i{via} OpenCL.")
  419. (license license:expat)))