Commit graph

35 commits

Author SHA1 Message Date
Martin Weinelt 9043d626c4
python3Packages.requests: disable fatal tests on aarch64-darwin 2022-04-15 22:18:31 +02:00
Sandro 480410be1a
Merge pull request #165429 from SuperSandro2000/requests 2022-03-26 12:08:54 +01:00
Sandro Jäckel a2c4c7f7a8
python39Packages.requests: remove no longer required patch 2022-03-23 11:23:34 +01:00
Dmitry Kalinkin 8f548c8401
python3Packages.requests: remove unneded trustme dependency
This removes rust from the build closure
2022-02-26 23:39:16 -05:00
Fabian Affolter 791721a640 python3Packages.requests: 2.27.0 -> 2.27.1 2022-01-12 16:20:23 +01:00
Fabian Affolter bdd74b0264 python3Packages.requests: 2.26.0 -> 2.27.0 2022-01-12 16:20:23 +01:00
Martin Weinelt f86eeb5658 python3Packages.requests: always provide chardet
Migrating to charset-normalizer caused a few encoding issues visible in
for example python3Packages.praw.
2021-10-11 01:54:20 +02:00
Matt McHenry 44c267f954 pythonPackages.requests: fix dependencies for python2
* brotlicffi does not support python 2, so only include it as a build
  input of requests if requests is being built for python 3.
  otherwise, fall back to brotli.

* requests 2.26 release notes specify that charset-normalizer is only
  for python 3, while chardet is only for python 2.  correct build
  inputs to reflect this.  (charset-normalizer does not build with
  python 2.)

fixes #138584
2021-09-29 22:33:59 -04:00
Fabian Affolter 4cc9b84118 python3Packages.requests: 2.25.1 -> 2.26.0 2021-09-05 15:34:49 +02:00
Martin Weinelt 2a7260989f python3Packages.requests: restore python2 compatibility 2021-09-05 15:00:09 +02:00
Keshav Kini 11f7c3310f
python3Packages.requests: patch in CA bundles
The requests library defaults to using the certificates from the
certifi library when not otherwise specified.  If I understand the
discussion at #8247 correctly, we should instead patch it so that it
follows the following priority order:

1. the path pointed to by the environment variable $NIX_SSL_CERT_FILE

2. /etc/ssl/certs/ca-certificates.crt

3. whatever it was doing before (in this case, using certifi)

This commit implements that.
2021-06-21 16:48:40 -07:00
Frederik Rietdijk a31eaddb60 python3Packages.requests: handle idna 3 2021-04-03 17:49:44 +02:00
Sandro Jäckel ac8f57f172
pythonPackages.requests: formatting 2021-03-05 16:32:38 +01:00
adisbladis 7fdf9d8bca
python2Packages.requests: Unbreak 2021-03-04 09:43:37 +02:00
Sandro Jäckel 2d243e170d
pythonPackages.requests: mark broken for python27 2021-03-01 18:16:34 +01:00
Fabian Affolter b44a2395ca python3Packages.requests: 2.25.0 -> 2.25.1 2021-02-17 22:13:29 +00:00
Pavol Rusnak a6ce00c50c
treewide: remove stdenv where not needed 2021-01-25 18:31:47 +01:00
Profpatsch 4a7f99d55d treewide: with stdenv.lib; in meta -> with lib;
Part of: https://github.com/NixOS/nixpkgs/issues/108938

meta = with stdenv.lib;

is a widely used pattern. We want to slowly remove
the `stdenv.lib` indirection and encourage people
to use `lib` directly. Thus let’s start with the meta
field.

This used a rewriting script to mostly automatically
replace all occurances of this pattern, and add the
`lib` argument to the package header if it doesn’t
exist yet.

The script in its current form is available at
https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
2021-01-11 10:38:22 +01:00
Martin Weinelt d72a58a684 python3Packages.requests: 2.24.0 -> 2.25.0 2020-11-17 09:18:12 -08:00
Frederik Rietdijk d35f2cfe60 python: requests: 2.23.0 -> 2.24.0 2020-08-16 19:31:14 +02:00
Daiderd Jordan b7ddbd52bd
treewide: replace SRI hashes 2020-06-01 15:24:19 +02:00
Frederik Rietdijk f14d4b45b8 pythonPackages.requests: 2.22.0 -> 2.23.0 2020-05-11 22:12:09 +02:00
Michael Reilly 84cf00f980
treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
Pierre Bourdon abc9221996 pythonPackages.requests: 2.21.0 -> 2.22.0 2019-07-21 08:38:22 +02:00
Frederik Rietdijk 62021bb3cd python: requests: 2.20.1 -> 2.21.0 2019-02-17 14:40:40 +01:00
Frederik Rietdijk 1fa6b1340a python: requests: 2.20.0 -> 2.20.1 2018-12-03 16:50:39 +01:00
Frederik Rietdijk f43b64cf57 python: requests: 2.19.1 -> 2.20.0 2018-12-03 16:50:35 +01:00
Jan Malakhovski 60ba7d233e pythonPackages.requests: disable multiple outputs
The `dev` output is empty anyway.

The problem is that it interacts badly with other parts of python and
stdenv infrastructure. In particular, before this patch it installs
code into `out` output (with only generated `nix-support` in `dev`),
but `makePythonPath` then uses `propagatedBuildInputs` to generate
`PYTHONPATH` while stdenv selects `dev` outputs for
`propagatedBuiltInputs`. This results in `makePythonPath` linking to
the empty `dev` output in `PYTHONPATH`.

This reverts a piece of commit 28299f669a.
2018-11-18 11:19:20 +01:00
Frederik Rietdijk 57efe1a657 python: requests: 2.19.0 -> 2.19.1 2018-06-22 13:09:45 +02:00
Frederik Rietdijk a99873e851 python: requests: 2.18.4 -> 2.19.0 2018-06-22 13:09:29 +02:00
Robert Schütz 12c71b3dbe python: remove name from some expressions 2018-02-28 10:10:05 +10:30
Eelco Dolstra 28299f669a Add even more dev outputs 2017-09-27 12:08:48 +02:00
Frederik Rietdijk 67651d80bc Merge pull request #28884 from FRidh/python-fixes
Python: several fixes
2017-09-06 13:54:10 +02:00
Vladimír Čunát 4d18d3bd87
Revert "python-requests2: use system-wide CA bundle"
This reverts commit 768c970c8d.
Moved to staging, as it causes ~16k rebuilds.
2017-02-09 17:24:36 +01:00
Peter Simons 768c970c8d python-requests2: use system-wide CA bundle rather than our own
This allows the library to interact gracefully with additional certificates
users might have configured in /etc/ssl/certs/ca-certificates.crt via NixOS.
2017-02-09 15:19:36 +01:00