Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 blinker, 6 flit-core, 7 flask, 8 pytestCheckHook, 9}: 10 11buildPythonPackage rec { 12 pname = "flask-mail"; 13 version = "0.10.0"; 14 pyproject = true; 15 16 src = fetchFromGitHub { 17 owner = "pallets-eco"; 18 repo = "flask-mail"; 19 rev = "refs/tags/${version}"; 20 hash = "sha256-G2Z8dj1/IuLsZoNJVrL6LYu0XjTEHtWB9Z058aqG9Ic="; 21 }; 22 23 build-system = [ flit-core ]; 24 25 dependencies = [ 26 blinker 27 flask 28 ]; 29 30 pythonImportsCheck = [ "flask_mail" ]; 31 32 nativeCheckInputs = [ pytestCheckHook ]; 33 34 meta = { 35 description = "Flask extension providing simple email sending capabilities"; 36 homepage = "https://github.com/pallets-eco/flask-mail"; 37 changelog = "https://github.com/pallets-eco/flask-mail/blob/${src.rev}/CHANGES.md"; 38 license = lib.licenses.bsd3; 39 }; 40}