1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 setuptools, 6 flask, 7}: 8 9buildPythonPackage rec { 10 pname = "flask-allowed-hosts"; 11 version = "1.2.0"; 12 pyproject = true; 13 14 src = fetchPypi { 15 inherit version; 16 pname = "flask_allowed_hosts"; 17 hash = "sha256-LL0Vm33R0BYo8IKyjAzpvO7ls4EfcPx3cx3OU6OsE6s="; 18 }; 19 20 build-system = [ setuptools ]; 21 22 dependencies = [ flask ]; 23 24 pythonImportsCheck = [ "flask_allowed_hosts" ]; 25 26 meta = with lib; { 27 description = "Flask extension that helps you limit access to your API endpoints"; 28 homepage = "https://github.com/riad-azz/flask-allowedhosts"; 29 license = licenses.mit; 30 maintainers = with maintainers; [ erictapen ]; 31 }; 32}