Skip to content

Commit ef4442e

Browse files
committedMay 7, 2017
Python: replace requests2 with requests tree-wide
See f63eb58 The `requests2` attribute now throws an error informing that `requests` should be used instead.
1 parent 024ddb3 commit ef4442e

File tree

51 files changed

+170
-169
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+170
-169
lines changed
 

‎doc/languages-frameworks/python.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,7 @@ running `nix-shell` with the following `shell.nix`
580580
with import <nixpkgs> {};
581581
582582
(python3.buildEnv.override {
583-
extraLibs = with python3Packages; [ numpy requests2 ];
583+
extraLibs = with python3Packages; [ numpy requests ];
584584
}).env
585585
```
586586

@@ -622,7 +622,7 @@ attribute. The `shell.nix` file from the previous section can thus be also writt
622622
```nix
623623
with import <nixpkgs> {};
624624
625-
(python33.withPackages (ps: [ps.numpy ps.requests2])).env
625+
(python33.withPackages (ps: [ps.numpy ps.requests])).env
626626
```
627627

628628
In contrast to `python.buildEnv`, `python.withPackages` does not support the more advanced options

‎pkgs/applications/audio/mopidy-gmusic/default.nix

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ pythonPackages.buildPythonApplication rec {
1111

1212
propagatedBuildInputs = [
1313
mopidy
14-
pythonPackages.requests2
14+
pythonPackages.requests
1515
pythonPackages.gmusicapi
1616
pythonPackages.cachetools
1717
];

0 commit comments

Comments
 (0)
Please sign in to comment.