trurl: add passthru.tests.version

Signed-off-by: Christoph Heiss <christoph@c8h4.io>
This commit is contained in:
Christoph Heiss 2023-04-26 16:33:46 +02:00
parent 018fe5d71b
commit 215801b5f4
No known key found for this signature in database
GPG key ID: 6817E9C75C0785D7

View file

@ -1,4 +1,4 @@
{ lib, stdenv, fetchFromGitHub, curl, python3, python3Packages }:
{ lib, stdenv, fetchFromGitHub, curl, python3, python3Packages, trurl, testers }:
stdenv.mkDerivation rec {
pname = "trurl";
@ -24,6 +24,10 @@ stdenv.mkDerivation rec {
nativeCheckInputs = [ python3 python3Packages.packaging ];
checkTarget = "test";
passthru.tests.version = testers.testVersion {
package = trurl;
};
meta = with lib; {
description = "A command line tool for URL parsing and manipulation";
homepage = "https://curl.se/trurl";