python3Packages.wasabi: disable on older Python releases

- add pythonImportsCheck
This commit is contained in:
Fabian Affolter 2022-04-08 11:55:29 +02:00 committed by GitHub
parent 0e3e49fc67
commit d77b153fe9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,23 +2,34 @@
, buildPythonPackage
, fetchPypi
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "wasabi";
version = "0.9.1";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-rabxPptw7ya/lfrQ/r396+IAXimgitWPS7rjg6lymM8=";
};
checkInputs = [ pytestCheckHook ];
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"wasabi"
];
meta = with lib; {
description = "A lightweight console printing and formatting toolkit";
homepage = "https://github.com/ines/wasabi";
changelog = "https://github.com/ines/wasabi/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ ];
};
}