diff --git a/pkgs/development/python-modules/sanic-routing/default.nix b/pkgs/development/python-modules/sanic-routing/default.nix index cb06b5d1f2b3..e17f9df8b880 100644 --- a/pkgs/development/python-modules/sanic-routing/default.nix +++ b/pkgs/development/python-modules/sanic-routing/default.nix @@ -3,25 +3,36 @@ , fetchFromGitHub , pytestCheckHook , pytest-asyncio +, pythonOlder }: buildPythonPackage rec { pname = "sanic-routing"; version = "22.3.0"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "sanic-org"; repo = "sanic-routing"; - rev = "v${version}"; + rev = "refs/tags/v${version}"; hash = "sha256-dX+uxrVjtPxX0ba3WUE/JKgj0PZzvFdKr/lXQgASN6Y="; }; - checkInputs = [ pytestCheckHook pytest-asyncio ]; - pythonImportsCheck = [ "sanic_routing" ]; + checkInputs = [ + pytest-asyncio + pytestCheckHook + ]; + + pythonImportsCheck = [ + "sanic_routing" + ]; meta = with lib; { description = "Core routing component for the Sanic web framework"; homepage = "https://github.com/sanic-org/sanic-routing"; + changelog = "https://github.com/sanic-org/sanic-routing/releases/tag/v${version}"; license = licenses.mit; maintainers = with maintainers; [ AluisioASG ]; };