1{ 2 lib, 3 buildPythonPackage, 4 captcha, 5 fetchFromGitHub, 6 flask, 7 flask-session, 8 flask-sqlalchemy, 9 markupsafe, 10 pytestCheckHook, 11 pythonOlder, 12 setuptools, 13}: 14 15buildPythonPackage rec { 16 pname = "flask-session-captcha"; 17 version = "1.5.0"; 18 pyproject = true; 19 20 disabled = pythonOlder "3.8"; 21 22 src = fetchFromGitHub { 23 owner = "Tethik"; 24 repo = "flask-session-captcha"; 25 tag = "v${version}"; 26 hash = "sha256-2JPJx8yQIl0bbcbshONJtja7BnSiieHzHi64A6jLpc0="; 27 }; 28 29 build-system = [ setuptools ]; 30 31 dependencies = [ 32 captcha 33 flask 34 markupsafe 35 ]; 36 37 nativeCheckInputs = [ 38 flask-session 39 flask-sqlalchemy 40 pytestCheckHook 41 ]; 42 43 pythonImportsCheck = [ "flask_session_captcha" ]; 44 45 meta = with lib; { 46 description = "Captcha implemention for flask"; 47 homepage = "https://github.com/Tethik/flask-session-captcha"; 48 changelog = "https://github.com/Tethik/flask-session-captcha/releases/tag/v${version}"; 49 license = licenses.mit; 50 maintainers = with maintainers; [ Flakebi ]; 51 }; 52}