nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 pbr,
6}:
7
8buildPythonPackage rec {
9 pname = "requestsexceptions";
10 version = "1.4.0";
11 format = "setuptools";
12
13 src = fetchPypi {
14 inherit pname version;
15 sha256 = "b095cbc77618f066d459a02b137b020c37da9f46d9b057704019c9f77dba3065";
16 };
17
18 propagatedBuildInputs = [ pbr ];
19
20 # upstream hacking package is not required for functional testing
21 patchPhase = ''
22 sed -i '/^hacking/d' test-requirements.txt
23 '';
24
25 meta = {
26 description = "Import exceptions from potentially bundled packages in requests";
27 homepage = "https://pypi.python.org/pypi/requestsexceptions";
28 license = lib.licenses.asl20;
29 maintainers = with lib.maintainers; [ makefu ];
30 platforms = lib.platforms.all;
31 };
32}