mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 20:03:16 +00:00
python3Packages.starlette: 0.12.13 -> 0.12.9 downgrade (fix fastapi), enable tests
fastapi is the only dependent package of starlette. Downgrading version and enabling full tests to fix fastapi.
This commit is contained in:
parent
470566c0c8
commit
708d34a5c5
@ -1,7 +1,7 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, stdenv
|
, stdenv
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchFromGitHub
|
||||||
, aiofiles
|
, aiofiles
|
||||||
, graphene
|
, graphene
|
||||||
, itsdangerous
|
, itsdangerous
|
||||||
@ -9,21 +9,25 @@
|
|||||||
, pyyaml
|
, pyyaml
|
||||||
, requests
|
, requests
|
||||||
, ujson
|
, ujson
|
||||||
|
, python-multipart
|
||||||
, pytest
|
, pytest
|
||||||
, python
|
|
||||||
, uvicorn
|
, uvicorn
|
||||||
, isPy27
|
, isPy27
|
||||||
, darwin
|
, darwin
|
||||||
|
, databases
|
||||||
|
, aiosqlite
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "starlette";
|
pname = "starlette";
|
||||||
version = "0.12.13";
|
version = "0.12.9";
|
||||||
disabled = isPy27;
|
disabled = isPy27;
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchFromGitHub {
|
||||||
inherit pname version;
|
owner = "encode";
|
||||||
sha256 = "9597bc28e3c4659107c1c4a45ec32dc45e947d78fe56230222be673b2c36454a";
|
repo = "starlette";
|
||||||
|
rev = version;
|
||||||
|
sha256 = "0w44s8ynzy8w8dgm755c8jina9i4dd87vqkcv7jc1kwkg384w9i5";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
@ -35,13 +39,17 @@ buildPythonPackage rec {
|
|||||||
requests
|
requests
|
||||||
ujson
|
ujson
|
||||||
uvicorn
|
uvicorn
|
||||||
|
python-multipart
|
||||||
|
databases
|
||||||
] ++ stdenv.lib.optional stdenv.isDarwin [ darwin.apple_sdk.frameworks.ApplicationServices ];
|
] ++ stdenv.lib.optional stdenv.isDarwin [ darwin.apple_sdk.frameworks.ApplicationServices ];
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
pytest
|
||||||
|
aiosqlite
|
||||||
|
];
|
||||||
|
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
${python.interpreter} -c """
|
pytest --ignore=tests/test_graphql.py
|
||||||
from starlette.applications import Starlette
|
|
||||||
app = Starlette(debug=True)
|
|
||||||
"""
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
Loading…
Reference in New Issue
Block a user