summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiacomo Leidi <therewasa@fishinthecalculator.me>2026-07-18 16:17:27 +0200
committerAndreas Enge <andreas@enge.fr>2026-07-28 13:38:03 +0200
commit4f4022d511b95699fecbe43bae4f891eb09f9793 (patch)
tree16fb9eecdd4d3a00f3f9ff1e105e27b034cfe4da
parentf0a97ad3501610fa040cd347258bbd06cb2d4ed4 (diff)
gnu: elixir-httpoison: Update to 3.0.0.
* gnu/packages/elixir-web.scm (elixir-httpoison): Update to 3.0.0. [source]<patches>: Drop elixir-httpoison-tag-network-dependent-test-cases.patch as https://github.com/edgurgel/httpoison/pull/502 has been included in the 3.0.0 release. * gnu/local.mk: Drop patch. * gnu/packages/patches/elixir-httpoison-tag-network-dependent-test-cases.patch: Delete patch. Signed-off-by: Andreas Enge <andreas@enge.fr>
-rw-r--r--gnu/local.mk1
-rw-r--r--gnu/packages/elixir-web.scm10
-rw-r--r--gnu/packages/patches/elixir-httpoison-tag-network-dependent-test-cases.patch64
3 files changed, 3 insertions, 72 deletions
diff --git a/gnu/local.mk b/gnu/local.mk
index e6ad5d90948..843e50e5f9b 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -1240,7 +1240,6 @@ dist_patch_DATA = \
1240 %D%/packages/patches/eigen-fix-strict-aliasing-bug.patch \ 1240 %D%/packages/patches/eigen-fix-strict-aliasing-bug.patch \
1241 %D%/packages/patches/einstein-build.patch \ 1241 %D%/packages/patches/einstein-build.patch \
1242 %D%/packages/patches/elfutils-tests-ptrace.patch \ 1242 %D%/packages/patches/elfutils-tests-ptrace.patch \
1243 %D%/packages/patches/elixir-httpoison-tag-network-dependent-test-cases.patch \
1244 %D%/packages/patches/elixir-path-length.patch \ 1243 %D%/packages/patches/elixir-path-length.patch \
1245 %D%/packages/patches/elm-ghc9.2.patch \ 1244 %D%/packages/patches/elm-ghc9.2.patch \
1246 %D%/packages/patches/exaile-gstreamer-1.28.patch \ 1245 %D%/packages/patches/exaile-gstreamer-1.28.patch \
diff --git a/gnu/packages/elixir-web.scm b/gnu/packages/elixir-web.scm
index 7bf1e27ae35..7f35a6d7752 100644
--- a/gnu/packages/elixir-web.scm
+++ b/gnu/packages/elixir-web.scm
@@ -1,5 +1,5 @@
1;;; GNU Guix --- Functional package management for GNU 1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2025 Giacomo Leidi <therewasa@fishinthecalculator.me> 2;;; Copyright © 2025, 2026 Giacomo Leidi <therewasa@fishinthecalculator.me>
3;;; 3;;;
4;;; This file is part of GNU Guix. 4;;; This file is part of GNU Guix.
5;;; 5;;;
@@ -285,7 +285,7 @@ purposes. Its goal is to be as close as possible to
285(define-public elixir-httpoison 285(define-public elixir-httpoison
286 (package 286 (package
287 (name "elixir-httpoison") 287 (name "elixir-httpoison")
288 (version "2.2.3") 288 (version "3.0.0")
289 (source 289 (source
290 (origin 290 (origin
291 (method git-fetch) 291 (method git-fetch)
@@ -294,11 +294,7 @@ purposes. Its goal is to be as close as possible to
294 (commit (string-append "v" version)))) 294 (commit (string-append "v" version))))
295 (file-name (git-file-name name version)) 295 (file-name (git-file-name name version))
296 (sha256 296 (sha256
297 (base32 "0k9g4dc6y30wr9ryxjs23izifpg4dqkkqk8xz39ff27jn5s97k8i")) 297 (base32 "0y2wih0cyxgkjxcqgmzfxxrcss2zpys8n5nzb19bsdxh8rvrazcv"))))
298 ;; Waiting for upstream inclusion at
299 ;; https://github.com/edgurgel/httpoison/pull/502
300 (patches
301 (search-patches "elixir-httpoison-tag-network-dependent-test-cases.patch"))))
302 (build-system mix-build-system) 298 (build-system mix-build-system)
303 (arguments 299 (arguments
304 (list 300 (list
diff --git a/gnu/packages/patches/elixir-httpoison-tag-network-dependent-test-cases.patch b/gnu/packages/patches/elixir-httpoison-tag-network-dependent-test-cases.patch
deleted file mode 100644
index 763e20a6977..00000000000
--- a/gnu/packages/patches/elixir-httpoison-tag-network-dependent-test-cases.patch
+++ /dev/null
@@ -1,64 +0,0 @@
1From 788c481157871fe37becb2ec0280510061174e95 Mon Sep 17 00:00:00 2001
2From: Giacomo Leidi <goodoldpaul@autistici.org>
3Date: Sun, 21 Sep 2025 20:25:03 +0200
4Subject: [PATCH] tests: Tag network dependent test cases.
5
6Many environments, such as Linux distributions one, segragate builds
7from accessing many system resources like Internet access. Currently it
8is impossible to run the test suite offline, as it needs access to
9badssl.com. This commit tags network dependent test cases to allow them
10to be excluded in offline environments using mix test --exclude.
11
12This holds at least for openSUSE Tumbleweed, NixOS, Guix System and
13probably many others.
14---
15 test/httpoison_test.exs | 5 +++++
16 1 file changed, 5 insertions(+)
17
18diff --git a/test/httpoison_test.exs b/test/httpoison_test.exs
19index b260c65..f342b59 100644
20--- a/test/httpoison_test.exs
21+++ b/test/httpoison_test.exs
22@@ -409,6 +409,7 @@ defmodule HTTPoisonTest do
23 )
24 end
25
26+ @tag :network
27 test "expired certificate" do
28 assert {:error, %HTTPoison.Error{reason: {:tls_alert, {:certificate_expired, reason}}}} =
29 HTTPoison.get("https://expired.badssl.com/")
30@@ -440,6 +441,7 @@ defmodule HTTPoisonTest do
31 )
32 end
33
34+ @tag :network
35 test "allows changing TLS1.0 settings" do
36 assert {:error,
37 %HTTPoison.Error{
38@@ -455,6 +457,7 @@ defmodule HTTPoisonTest do
39 end
40 end
41
42+ @tag :network
43 test "allows changing TLS1.1 settings" do
44 assert {:error,
45 %HTTPoison.Error{
46@@ -472,6 +475,7 @@ defmodule HTTPoisonTest do
47 end
48 end
49
50+ @tag :network
51 test "does support tls1.2" do
52 if :"tlsv1.2" in :ssl.versions()[:supported] do
53 assert {:ok, _} = HTTPoison.get("https://tls-v1-2.badssl.com:1012/", [])
54@@ -485,6 +489,7 @@ defmodule HTTPoisonTest do
55 end
56 end
57
58+ @tag :network
59 test "invalid common name" do
60 assert {:error,
61 %HTTPoison.Error{
62--
632.51.0
64