3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/starlette/default.nix
Chris Ostrouchov 708d34a5c5
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.
2019-12-29 13:44:15 -05:00

62 lines
1 KiB
Nix

{ lib
, stdenv
, buildPythonPackage
, fetchFromGitHub
, aiofiles
, graphene
, itsdangerous
, jinja2
, pyyaml
, requests
, ujson
, python-multipart
, pytest
, uvicorn
, isPy27
, darwin
, databases
, aiosqlite
}:
buildPythonPackage rec {
pname = "starlette";
version = "0.12.9";
disabled = isPy27;
src = fetchFromGitHub {
owner = "encode";
repo = "starlette";
rev = version;
sha256 = "0w44s8ynzy8w8dgm755c8jina9i4dd87vqkcv7jc1kwkg384w9i5";
};
propagatedBuildInputs = [
aiofiles
graphene
itsdangerous
jinja2
pyyaml
requests
ujson
uvicorn
python-multipart
databases
] ++ stdenv.lib.optional stdenv.isDarwin [ darwin.apple_sdk.frameworks.ApplicationServices ];
checkInputs = [
pytest
aiosqlite
];
checkPhase = ''
pytest --ignore=tests/test_graphql.py
'';
meta = with lib; {
homepage = https://www.starlette.io/;
description = "The little ASGI framework that shines";
license = licenses.bsd3;
maintainers = with maintainers; [ wd15 ];
};
}