nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 35 lines 834 B view raw
1{ lib, fetchFromGitHub, buildPythonPackage, isPy3k, flask, mock, python }: 2 3buildPythonPackage rec { 4 pname = "Flask-SeaSurf"; 5 version = "1.1.1"; 6 disabled = !isPy3k; 7 8 src = fetchFromGitHub { 9 owner = "maxcountryman"; 10 repo = "flask-seasurf"; 11 rev = version; 12 sha256 = "sha256-L/ZUEqqHmsyXG5eShcITII36ttwQlZN5GBngo+GcCdw="; 13 }; 14 15 propagatedBuildInputs = [ flask ]; 16 17 checkInputs = [ 18 mock 19 ]; 20 21 checkPhase = '' 22 runHook preCheck 23 ${python.interpreter} -m unittest discover 24 runHook postCheck 25 ''; 26 27 pythonImportsCheck = [ "flask_seasurf" ]; 28 29 meta = with lib; { 30 description = "A Flask extension for preventing cross-site request forgery"; 31 homepage = "https://github.com/maxcountryman/flask-seasurf"; 32 license = licenses.bsd3; 33 maintainers = with maintainers; [ zhaofengli ]; 34 }; 35}