From 120bc6754b2f4f89343f7acd924a3398382e9834 Mon Sep 17 00:00:00 2001 From: Zhaofeng Li Date: Sat, 16 Jan 2021 01:49:52 -0800 Subject: [PATCH] pythonPackages.flask-sslify: init at 0.1.5 --- .../python-modules/flask-sslify/default.nix | 23 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 25 insertions(+) create mode 100644 pkgs/development/python-modules/flask-sslify/default.nix diff --git a/pkgs/development/python-modules/flask-sslify/default.nix b/pkgs/development/python-modules/flask-sslify/default.nix new file mode 100644 index 000000000000..ad4bc4dc0523 --- /dev/null +++ b/pkgs/development/python-modules/flask-sslify/default.nix @@ -0,0 +1,23 @@ +{ lib, fetchPypi, buildPythonPackage, flask }: + +buildPythonPackage rec { + pname = "Flask-SSLify"; + version = "0.1.5"; + + src = fetchPypi { + inherit pname version; + sha256 = "0gjl1m828z5dm3c5dpc2qjgi4llf84cp72mafr0ib5fd14y1sgnk"; + }; + + propagatedBuildInputs = [ flask ]; + + doCheck = false; + pythonImportsCheck = [ "flask_sslify" ]; + + meta = with lib; { + description = "A Flask extension that redirects all incoming requests to HTTPS"; + homepage = "https://github.com/kennethreitz42/flask-sslify"; + license = licenses.bsd2; + maintainers = with maintainers; [ zhaofengli ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 15147e1de829..e4c40bce85a8 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2392,6 +2392,8 @@ in { flask_sqlalchemy = callPackage ../development/python-modules/flask-sqlalchemy { }; + flask-sslify = callPackage ../development/python-modules/flask-sslify { }; + flask-swagger = callPackage ../development/python-modules/flask-swagger { }; flask-swagger-ui = callPackage ../development/python-modules/flask-swagger-ui { };