python310Packages.knack: add pythonImportsCheck

This commit is contained in:
Fabian Affolter 2022-12-08 00:54:52 +01:00 committed by GitHub
parent 3807ffe101
commit c9fa130d03
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -11,11 +11,15 @@
, mock , mock
, vcrpy , vcrpy
, pytest , pytest
, pythonOlder
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "knack"; pname = "knack";
version = "0.10.1"; version = "0.10.1";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
@ -42,6 +46,10 @@ buildPythonPackage rec {
HOME=$TMPDIR pytest . HOME=$TMPDIR pytest .
''; '';
pythonImportsCheck = [
"knack"
];
meta = with lib; { meta = with lib; {
homepage = "https://github.com/microsoft/knack"; homepage = "https://github.com/microsoft/knack";
description = "A Command-Line Interface framework"; description = "A Command-Line Interface framework";