depot/third_party/nixpkgs/pkgs/development/python-modules/flask-seasurf/default.nix
Default email b450903751 Project import generated by Copybara.
GitOrigin-RevId: 74a1793c659d09d7cf738005308b1f86c90cb59b
2022-09-09 16:08:57 +02:00

30 lines
752 B
Nix

{ lib, fetchFromGitHub, buildPythonPackage, isPy3k, flask, mock, unittestCheckHook }:
buildPythonPackage rec {
pname = "Flask-SeaSurf";
version = "1.1.1";
disabled = !isPy3k;
src = fetchFromGitHub {
owner = "maxcountryman";
repo = "flask-seasurf";
rev = version;
sha256 = "sha256-L/ZUEqqHmsyXG5eShcITII36ttwQlZN5GBngo+GcCdw=";
};
propagatedBuildInputs = [ flask ];
checkInputs = [
unittestCheckHook
mock
];
pythonImportsCheck = [ "flask_seasurf" ];
meta = with lib; {
description = "A Flask extension for preventing cross-site request forgery";
homepage = "https://github.com/maxcountryman/flask-seasurf";
license = licenses.bsd3;
maintainers = with maintainers; [ zhaofengli ];
};
}