Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.2 kB · 59 lines
Nix
at litex
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960{ 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 ]; };}