Files
nixpkgs/pkgs/development/python-modules/flask-cors/default.nix
T
Alexis Hildebrandt 755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00

40 lines
859 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 = "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 ];
};
}