python311Packages.starlette: 0.35.1 -> 0.37.1
Diff: https://github.com/encode/starlette/compare/refs/tags/0.35.1...0.37.1 Changelog: https://www.starlette.io/release-notes/#0371
This commit is contained in:
parent
e30c983e07
commit
a944ef32a6
@ -1,6 +1,7 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, fetchPypi
|
||||
|
||||
# build-system
|
||||
, hatchling
|
||||
@ -17,6 +18,7 @@
|
||||
, httpx
|
||||
|
||||
# tests
|
||||
, pytest
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, trio
|
||||
@ -27,16 +29,16 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "starlette";
|
||||
version = "0.35.1";
|
||||
version = "0.37.1";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "encode";
|
||||
repo = pname;
|
||||
repo = "starlette";
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-ynT1KowVJ1QdKLSOXYWVe5Q/PrYEWQDUbj395ebfk6Y=";
|
||||
hash = "sha256-SJdBss1WKC30oulVTYUwUAJ8WM0KF5xbn/gvV97WM2g=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
@ -58,7 +60,18 @@ buildPythonPackage rec {
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
(pytestCheckHook.override {
|
||||
# pytest 8 changes warning message
|
||||
# see https://github.com/encode/starlette/commit/8da52c2243b8855426c40c16ae24b27734824078
|
||||
pytest = pytest.overridePythonAttrs (old: rec {
|
||||
version = "8.1.0";
|
||||
src = fetchPypi {
|
||||
pname = "pytest";
|
||||
inherit version;
|
||||
hash = "sha256-+PoEq4+Y0YUROuYOptecIvgUOxS8HK7O1EoKuESSgyM=";
|
||||
};
|
||||
});
|
||||
})
|
||||
trio
|
||||
typing-extensions
|
||||
] ++ lib.flatten (lib.attrValues passthru.optional-dependencies);
|
||||
@ -77,7 +90,7 @@ buildPythonPackage rec {
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
changelog = "https://github.com/encode/starlette/releases/tag/${version}";
|
||||
changelog = "https://www.starlette.io/release-notes/#${lib.replaceStrings [ "." ] [ "" ] version}";
|
||||
downloadPage = "https://github.com/encode/starlette";
|
||||
homepage = "https://www.starlette.io/";
|
||||
description = "The little ASGI framework that shines";
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user