mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 02:42:59 +00:00
python3packages.starlette: 0.20.4 -> 0.23.1
https://github.com/encode/starlette/releases/tag/0.21.0 https://github.com/encode/starlette/releases/tag/0.22.0 https://github.com/encode/starlette/releases/tag/0.23.0 https://github.com/encode/starlette/releases/tag/0.23.1
This commit is contained in:
parent
15c22385d9
commit
5fa62858e0
@ -2,7 +2,10 @@
|
|||||||
, stdenv
|
, stdenv
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, fetchpatch
|
, hatchling
|
||||||
|
|
||||||
|
# runtime
|
||||||
|
, ApplicationServices
|
||||||
, aiofiles
|
, aiofiles
|
||||||
, anyio
|
, anyio
|
||||||
, contextlib2
|
, contextlib2
|
||||||
@ -10,20 +13,22 @@
|
|||||||
, jinja2
|
, jinja2
|
||||||
, python-multipart
|
, python-multipart
|
||||||
, pyyaml
|
, pyyaml
|
||||||
|
, typing-extensions
|
||||||
|
|
||||||
|
# tests
|
||||||
, requests
|
, requests
|
||||||
, aiosqlite
|
, aiosqlite
|
||||||
, databases
|
, databases
|
||||||
|
, httpx
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
, trio
|
, trio
|
||||||
, typing-extensions
|
|
||||||
, ApplicationServices
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "starlette";
|
pname = "starlette";
|
||||||
version = "0.20.4";
|
version = "0.23.1";
|
||||||
format = "setuptools";
|
format = "pyproject";
|
||||||
|
|
||||||
disabled = pythonOlder "3.6";
|
disabled = pythonOlder "3.6";
|
||||||
|
|
||||||
@ -31,15 +36,11 @@ buildPythonPackage rec {
|
|||||||
owner = "encode";
|
owner = "encode";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "refs/tags/${version}";
|
rev = "refs/tags/${version}";
|
||||||
hash = "sha256-vP2TJPn9lRGnLGkO8lUmnsoT6rSnhuWDD3WqNk76SM0=";
|
hash = "sha256-LcFrdaRgFBqcdylCzNlewj/papsg/sZ1FMVxBDLvQWI=";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [
|
nativeBuildInputs = [
|
||||||
(fetchpatch {
|
hatchling
|
||||||
url = "https://github.com/encode/starlette/commit/ab70211f0e1fb7390668bf4891eeceda8d9723a0.diff";
|
|
||||||
excludes = [ "requirements.txt" ]; # conflicts
|
|
||||||
hash = "sha256-UHf4c4YUWp/1I1vD8J0hMewdlfkmluA+FyGf9ZsSv3Y=";
|
|
||||||
})
|
|
||||||
];
|
];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
@ -66,12 +67,14 @@ buildPythonPackage rec {
|
|||||||
checkInputs = [
|
checkInputs = [
|
||||||
aiosqlite
|
aiosqlite
|
||||||
databases
|
databases
|
||||||
|
httpx
|
||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
trio
|
trio
|
||||||
typing-extensions
|
typing-extensions
|
||||||
];
|
];
|
||||||
|
|
||||||
pytestFlagsArray = [
|
pytestFlagsArray = [
|
||||||
|
"-W" "ignore::DeprecationWarning"
|
||||||
"-W" "ignore::trio.TrioDeprecationWarning"
|
"-W" "ignore::trio.TrioDeprecationWarning"
|
||||||
];
|
];
|
||||||
|
|
||||||
@ -86,6 +89,7 @@ buildPythonPackage rec {
|
|||||||
];
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
changelog = "https://github.com/encode/starlette/releases/tag/${version}";
|
||||||
homepage = "https://www.starlette.io/";
|
homepage = "https://www.starlette.io/";
|
||||||
description = "The little ASGI framework that shines";
|
description = "The little ASGI framework that shines";
|
||||||
license = licenses.bsd3;
|
license = licenses.bsd3;
|
||||||
|
Loading…
Reference in New Issue
Block a user