mystmd: add version tester

This commit is contained in:
Mario Rodas 2023-10-28 04:20:00 +00:00
parent 15287929d3
commit b59a05ec89

View file

@ -1,4 +1,4 @@
{ lib, buildNpmPackage, fetchFromGitHub }:
{ lib, buildNpmPackage, fetchFromGitHub, mystmd, testers }:
buildNpmPackage rec {
pname = "mystmd";
@ -23,6 +23,11 @@ buildNpmPackage rec {
runHook postInstall
'';
passthru.tests.version = testers.testVersion {
package = mystmd;
version = "v${version}";
};
meta = with lib; {
description = "Command line tools for working with MyST Markdown";
homepage = "https://github.com/executablebooks/mystmd";