python310Packages.flask-session: 0.4.0 -> 0.5.0

Nick Cao fa274261 9042b00d

+35 -10
+35 -10
pkgs/development/python-modules/flask-session/default.nix
··· 1 - { lib, fetchPypi, buildPythonPackage, pytestCheckHook, flask, cachelib }: 1 + { lib 2 + , fetchFromGitHub 3 + , buildPythonPackage 4 + , flit-core 5 + , flask 6 + , cachelib 7 + , pytestCheckHook 8 + }: 2 9 3 10 buildPythonPackage rec { 4 11 pname = "Flask-Session"; 5 - version = "0.4.0"; 12 + version = "0.5.0"; 13 + format = "pyproject"; 6 14 7 - src = fetchPypi { 8 - inherit pname version; 9 - hash = "sha256-ye1UMh+oxMoBMv/TNpWCdZ7aclL7SzvuSA5pDRukH0Y="; 15 + src = fetchFromGitHub { 16 + owner = "pallets-eco"; 17 + repo = "flask-session"; 18 + rev = "refs/tags/${version}"; 19 + hash = "sha256-t8w6ZS4gBDpnnKvL3DLtn+rRLQNJbrT2Hxm4f3+a3Xc="; 10 20 }; 11 21 12 - propagatedBuildInputs = [ flask cachelib ]; 22 + nativeBuildInputs = [ 23 + flit-core 24 + ]; 25 + 26 + propagatedBuildInputs = [ 27 + flask 28 + cachelib 29 + ]; 13 30 14 - nativeCheckInputs = [ pytestCheckHook ]; 31 + nativeCheckInputs = [ 32 + pytestCheckHook 33 + ]; 15 34 16 35 # The rest of the tests require database servers and optional db connector dependencies 17 - pytestFlagsArray = [ "-k" "'null_session or filesystem_session'" ]; 36 + pytestFlagsArray = [ 37 + "-k" 38 + "'null_session or filesystem_session'" 39 + ]; 18 40 19 - pythonImportsCheck = [ "flask_session" ]; 41 + pythonImportsCheck = [ 42 + "flask_session" 43 + ]; 20 44 21 45 meta = with lib; { 22 46 description = "A Flask extension that adds support for server-side sessions"; 23 - homepage = "https://github.com/fengsp/flask-session"; 47 + homepage = "https://github.com/pallets-eco/flask-session"; 48 + changelog = "https://github.com/pallets-eco/flask-session/releases/tag/${version}"; 24 49 license = licenses.bsd3; 25 50 maintainers = with maintainers; [ zhaofengli ]; 26 51 };