depot/third_party/nixpkgs/pkgs/development/python-modules/flask-mail/default.nix

41 lines
828 B
Nix
Raw Normal View History

{
lib,
buildPythonPackage,
fetchFromGitHub,
blinker,
flit-core,
flask,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "flask-mail";
version = "0.10.0";
pyproject = true;
src = fetchFromGitHub {
owner = "pallets-eco";
repo = "flask-mail";
rev = "refs/tags/${version}";
hash = "sha256-G2Z8dj1/IuLsZoNJVrL6LYu0XjTEHtWB9Z058aqG9Ic=";
};
build-system = [ flit-core ];
dependencies = [
blinker
flask
];
pythonImportsCheck = [ "flask_mail" ];
nativeCheckInputs = [ pytestCheckHook ];
meta = {
description = "Flask extension providing simple email sending capabilities";
homepage = "https://github.com/pallets-eco/flask-mail";
changelog = "https://github.com/pallets-eco/flask-mail/blob/${src.rev}/CHANGES.md";
license = lib.licenses.bsd3;
};
}