mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-25 14:24:40 +00:00
d8a20a1d4d
and normalize pname.
43 lines
864 B
Nix
43 lines
864 B
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, buildPythonPackage
|
|
, flask
|
|
, packaging
|
|
, pytestCheckHook
|
|
, setuptools
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "flask-cors";
|
|
version = "4.0.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "corydolphin";
|
|
repo = "flask-cors";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-o//ulROKKBv/CBJIGPBFP/+T0TpMHUVjr23Y5g1V05g=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
flask
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
packaging
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "A Flask extension adding a decorator for CORS support";
|
|
homepage = "https://github.com/corydolphin/flask-cors";
|
|
changelog = "https://github.com/corydolphin/flask-cors/releases/tag/v${version}";
|
|
license = with licenses; [ mit ];
|
|
maintainers = with maintainers; [ nickcao ];
|
|
};
|
|
}
|