nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5
6 # build-system
7 pdm-backend,
8
9 # propagates
10 quart,
11
12 # tests
13 pytestCheckHook,
14 pytest-asyncio,
15 pytest-cov-stub,
16}:
17
18buildPythonPackage rec {
19 pname = "quart-cors";
20 version = "0.8.0";
21 pyproject = true;
22
23 src = fetchFromGitHub {
24 owner = "pgjones";
25 repo = "quart-cors";
26 tag = version;
27 hash = "sha256-f+l+j0bjzi5FTwJzdXNyCgh3uT4zldpg22ZOgW1Wub4=";
28 };
29
30 build-system = [ pdm-backend ];
31
32 dependencies = [ quart ];
33
34 pythonImportsCheck = [ "quart_cors" ];
35
36 nativeCheckInputs = [
37 pytestCheckHook
38 pytest-asyncio
39 pytest-cov-stub
40 ];
41
42 meta = {
43 description = "Quart-CORS is an extension for Quart to enable and control Cross Origin Resource Sharing, CORS";
44 homepage = "https://github.com/pgjones/quart-cors/";
45 changelog = "https://github.com/pgjones/quart-cors/blob/${src.rev}/CHANGELOG.rst";
46 license = lib.licenses.mit;
47 maintainers = with lib.maintainers; [ hexa ];
48 };
49}