Skip to content

Commit cb106a1

Browse files
committed
python3Packages.falcon-cors: init at 1.1.7
1 parent ce6e5f0 commit cb106a1

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
lib,
3+
buildPythonPackage,
4+
fetchFromGitHub,
5+
setuptools,
6+
falcon,
7+
}:
8+
9+
buildPythonPackage rec {
10+
pname = "falcon-cors";
11+
version = "1.1.7";
12+
13+
src = fetchFromGitHub {
14+
owner = "lwcolton";
15+
repo = "falcon-cors";
16+
tag = version;
17+
hash = "sha256-jlEWP7gXbWfdY4coEIM6NWuBf4LOGbUAFMNvqip/FcA=";
18+
};
19+
20+
build-system = [ setuptools ];
21+
22+
dependencies = [ falcon ];
23+
24+
# Test fail with falcon >= 4
25+
# https://github.com/lwcolton/falcon-cors/issues/25
26+
doCheck = false;
27+
28+
pythonImportsCheck = [ "falcon_cors" ];
29+
30+
meta = {
31+
description = "CORS support for Falcon";
32+
homepage = "https://github.com/lwcolton/falcon-cors";
33+
license = lib.licenses.asl20;
34+
maintainers = with lib.maintainers; [ onny ];
35+
};
36+
}

pkgs/top-level/python-packages.nix

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4749,12 +4749,16 @@ self: super: with self; {
47494749

47504750
falcon = callPackage ../development/python-modules/falcon { };
47514751

4752+
falcon-cors = callPackage ../development/python-modules/falcon-cors { };
4753+
47524754
falconpy = callPackage ../development/python-modules/falconpy { };
47534755

47544756
faraday-agent-parameters-types =
47554757
callPackage ../development/python-modules/faraday-agent-parameters-types
47564758
{ };
47574759

4760+
falcon-cors = callPackage ../development/python-modules/falcon-cors { };
4761+
47584762
faraday-plugins = callPackage ../development/python-modules/faraday-plugins { };
47594763

47604764
farama-notifications = callPackage ../development/python-modules/farama-notifications { };

0 commit comments

Comments
 (0)