23 buildPythonPackage rec {
26 format = "setuptools";
28 disabled = pythonOlder "3.6";
30 src = fetchFromGitHub {
33 rev = "refs/tags/${version}";
34 hash = "sha256-vP2TJPn9lRGnLGkO8lUmnsoT6rSnhuWDD3WqNk76SM0=";
39 url = "https://github.com/encode/starlette/commit/ab70211f0e1fb7390668bf4891eeceda8d9723a0.diff";
40 excludes = [ "requirements.txt" ]; # conflicts
41 hash = "sha256-UHf4c4YUWp/1I1vD8J0hMewdlfkmluA+FyGf9ZsSv3Y=";
46 # remove coverage arguments to pytest
47 sed -i '/--cov/d' setup.cfg
50 propagatedBuildInputs = [
58 ] ++ lib.optionals (pythonOlder "3.8") [
60 ] ++ lib.optionals (pythonOlder "3.7") [
62 ] ++ lib.optionals stdenv.isDarwin [
75 # asserts fail due to inclusion of br in Accept-Encoding
76 "test_websocket_headers"
77 "test_request_headers"
80 pythonImportsCheck = [
85 homepage = "https://www.starlette.io/";
86 description = "The little ASGI framework that shines";
87 license = licenses.bsd3;
88 maintainers = with maintainers; [ wd15 ];