mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-20 01:16:57 +01:00
staticjinja: 1.0.1 -> 2.1.0, add version test (#126690)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
parent
f052ef14e7
commit
274ee2df9a
1 changed files with 8 additions and 2 deletions
|
@ -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/";
|
||||
|
|
Loading…
Reference in a new issue