Skip to content

Commit

Permalink
python3Packages.starlette: fix build
Browse files Browse the repository at this point in the history
newer python 3.8+ releases expose this breakage
encode/starlette#1131, fixed upstream in
encode/starlette#1132
  • Loading branch information
risicle committed Jun 1, 2021
1 parent 38fce8e commit 3777863
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions pkgs/development/python-modules/starlette/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
, stdenv
, buildPythonPackage
, fetchFromGitHub
, fetchpatch
, aiofiles
, graphene
, itsdangerous
Expand Down Expand Up @@ -31,6 +32,16 @@ buildPythonPackage rec {
sha256 = "11i0yd8cqwscixajl734g11vf8pghki11c81chzfh8ifmj6mf9jk";
};

patches = [
# a fix for https://github.com/encode/starlette/issues/1131 exposed
# by newer python 3.8+ versions
(fetchpatch {
name = "dont-use-undocumented-tracebackexception-attr.patch";
url = "https://github.com/encode/starlette/pull/1132/commits/aa97f30c73e1c830e0952f7a97d08bc5fad03dea.patch";
sha256 = "0clf8l4606y1g585dg4gvx250s2djskji8jaim4s90l9xzjag8sb";
})
];

propagatedBuildInputs = [
aiofiles
graphene
Expand Down

0 comments on commit 3777863

Please sign in to comment.