python310Packages.quart-cors: init at 0.6.0

Quart-CORS is an extension for Quart to enable and control Cross Origin
Resource Sharing, CORS.
This commit is contained in:
Martin Weinelt
2023-03-23 20:49:57 +01:00
parent 14c9c30982
commit 5ea1b9d7cd
2 changed files with 61 additions and 0 deletions
@@ -0,0 +1,59 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
# build-system
, poetry-core
# propagates
, quart
, typing-extensions
# tests
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "quart-cors";
version = "0.6.0";
format = "pyproject";
src = fetchFromGitHub {
owner = "pgjones";
repo = "quart-cors";
rev = "refs/tags/${version}";
hash = "sha256-SbnYrpeyEn47JgP9p3Us0zfkjC1sJ7jPPUIHYHAiSgc=";
};
nativeBuildInputs = [
poetry-core
];
postPatch = ''
substituteInPlace pyproject.toml \
--replace "--no-cov-on-fail " ""
'';
propagatedBuildInputs = [
quart
] ++ lib.optionals (pythonOlder "3.10") [
typing-extensions
];
pythonImportsCheck = [
"quart_cors"
];
nativeCheckInputs = [
pytestCheckHook
];
meta = with lib; {
description = "Quart-CORS is an extension for Quart to enable and control Cross Origin Resource Sharing, CORS";
homepage = "https://github.com/pgjones/quart-cors/";
changelog = "https://github.com/pgjones/quart-cors/blob/${src.rev}/CHANGELOG.rst";
license = licenses.mit;
maintainers = with maintainers; [ hexa ];
};
}
+2
View File
@@ -9959,6 +9959,8 @@ self: super: with self; {
quart = callPackage ../development/python-modules/quart { };
quart-cors = callPackage ../development/python-modules/quart-cors { };
querystring_parser = callPackage ../development/python-modules/querystring-parser { };
questionary = callPackage ../development/python-modules/questionary { };