From 274ee2df9aa3be99fd6257ab76097091348c95c3 Mon Sep 17 00:00:00 2001 From: Francesco Gazzetta Date: Tue, 15 Jun 2021 01:01:10 +0000 Subject: [PATCH] staticjinja: 1.0.1 -> 2.1.0, add version test (#126690) Co-authored-by: Sandro --- .../development/python-modules/staticjinja/default.nix | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/staticjinja/default.nix b/pkgs/development/python-modules/staticjinja/default.nix index 90ba99fe0ac8..0681218cd0a5 100644 --- a/pkgs/development/python-modules/staticjinja/default.nix +++ b/pkgs/development/python-modules/staticjinja/default.nix @@ -8,11 +8,13 @@ , pytestCheckHook , pytest-check , markdown +, testVersion +, staticjinja }: buildPythonPackage rec { pname = "staticjinja"; - version = "2.0.1"; + version = "2.1.0"; format = "pyproject"; # No tests in pypi @@ -20,7 +22,7 @@ buildPythonPackage rec { owner = "staticjinja"; repo = pname; rev = version; - sha256 = "sha256-sGon3+So4EuVRTUqcP9omfJ91wBzJSm7CSkuefX3S+8="; + sha256 = "sha256-VKsDvWEurBdckWbPG5hQLK3dzdM7XVbrp23fR5wp1xk="; }; nativeBuildInputs = [ @@ -44,6 +46,10 @@ buildPythonPackage rec { export PATH="$PATH:$out/bin"; ''; + passthru.tests.version = testVersion { + package = staticjinja; + }; + meta = with lib; { description = "A library and cli tool that makes it easy to build static sites using Jinja2"; homepage = "https://staticjinja.readthedocs.io/en/latest/";