diff options
| author | Nick Cao <nickcao@nichi.co> | 2023-08-08 14:47:59 +0800 |
|---|---|---|
| committer | Nick Cao <nickcao@nichi.co> | 2023-08-08 15:15:46 +0800 |
| commit | fa2742617bbaecfbd2ed727308fe3473b0ebc7e2 (patch) | |
| tree | e428c1741812ee0f81987b04c450e0adc58a93a7 /pkgs/development/python-modules | |
| parent | 9042b00dec489678e5a38b1c4452e24e8513cd17 (diff) | |
python310Packages.flask-session: 0.4.0 -> 0.5.0
Diffstat (limited to 'pkgs/development/python-modules')
| -rw-r--r-- | pkgs/development/python-modules/flask-session/default.nix | 45 |
1 files changed, 35 insertions, 10 deletions
diff --git a/pkgs/development/python-modules/flask-session/default.nix b/pkgs/development/python-modules/flask-session/default.nix index e34e302e6e0c..a777bf0920ab 100644 --- a/pkgs/development/python-modules/flask-session/default.nix +++ b/pkgs/development/python-modules/flask-session/default.nix @@ -1,26 +1,51 @@ -{ lib, fetchPypi, buildPythonPackage, pytestCheckHook, flask, cachelib }: +{ lib +, fetchFromGitHub +, buildPythonPackage +, flit-core +, flask +, cachelib +, pytestCheckHook +}: buildPythonPackage rec { pname = "Flask-Session"; - version = "0.4.0"; + version = "0.5.0"; + format = "pyproject"; - src = fetchPypi { - inherit pname version; - hash = "sha256-ye1UMh+oxMoBMv/TNpWCdZ7aclL7SzvuSA5pDRukH0Y="; + src = fetchFromGitHub { + owner = "pallets-eco"; + repo = "flask-session"; + rev = "refs/tags/${version}"; + hash = "sha256-t8w6ZS4gBDpnnKvL3DLtn+rRLQNJbrT2Hxm4f3+a3Xc="; }; - propagatedBuildInputs = [ flask cachelib ]; + nativeBuildInputs = [ + flit-core + ]; - nativeCheckInputs = [ pytestCheckHook ]; + propagatedBuildInputs = [ + flask + cachelib + ]; + + nativeCheckInputs = [ + pytestCheckHook + ]; # The rest of the tests require database servers and optional db connector dependencies - pytestFlagsArray = [ "-k" "'null_session or filesystem_session'" ]; + pytestFlagsArray = [ + "-k" + "'null_session or filesystem_session'" + ]; - pythonImportsCheck = [ "flask_session" ]; + pythonImportsCheck = [ + "flask_session" + ]; meta = with lib; { description = "A Flask extension that adds support for server-side sessions"; - homepage = "https://github.com/fengsp/flask-session"; + homepage = "https://github.com/pallets-eco/flask-session"; + changelog = "https://github.com/pallets-eco/flask-session/releases/tag/${version}"; license = licenses.bsd3; maintainers = with maintainers; [ zhaofengli ]; }; |
