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
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
|
, fetchPypi
|
||||||
|
|
||||||
# build-system
|
# build-system
|
||||||
, hatchling
|
, hatchling
|
||||||
@ -17,6 +18,7 @@
|
|||||||
, httpx
|
, httpx
|
||||||
|
|
||||||
# tests
|
# tests
|
||||||
|
, pytest
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
, trio
|
, trio
|
||||||
@ -27,16 +29,16 @@
|
|||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "starlette";
|
pname = "starlette";
|
||||||
version = "0.35.1";
|
version = "0.37.1";
|
||||||
pyproject = true;
|
pyproject = true;
|
||||||
|
|
||||||
disabled = pythonOlder "3.8";
|
disabled = pythonOlder "3.8";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "encode";
|
owner = "encode";
|
||||||
repo = pname;
|
repo = "starlette";
|
||||||
rev = "refs/tags/${version}";
|
rev = "refs/tags/${version}";
|
||||||
hash = "sha256-ynT1KowVJ1QdKLSOXYWVe5Q/PrYEWQDUbj395ebfk6Y=";
|
hash = "sha256-SJdBss1WKC30oulVTYUwUAJ8WM0KF5xbn/gvV97WM2g=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
@ -58,7 +60,18 @@ buildPythonPackage rec {
|
|||||||
];
|
];
|
||||||
|
|
||||||
nativeCheckInputs = [
|
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
|
trio
|
||||||
typing-extensions
|
typing-extensions
|
||||||
] ++ lib.flatten (lib.attrValues passthru.optional-dependencies);
|
] ++ lib.flatten (lib.attrValues passthru.optional-dependencies);
|
||||||
@ -77,7 +90,7 @@ buildPythonPackage rec {
|
|||||||
};
|
};
|
||||||
|
|
||||||
meta = with lib; {
|
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";
|
downloadPage = "https://github.com/encode/starlette";
|
||||||
homepage = "https://www.starlette.io/";
|
homepage = "https://www.starlette.io/";
|
||||||
description = "The little ASGI framework that shines";
|
description = "The little ASGI framework that shines";
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user