python310Packages.radish-bdd: add pythonImportsCheck

This commit is contained in:
Fabian Affolter 2022-10-10 18:17:31 +02:00 committed by GitHub
parent 1a6c1c951d
commit b5ef8c035e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,41 +7,56 @@
, freezegun , freezegun
, humanize , humanize
, lark , lark
, lxml
, parse-type , parse-type
, pysingleton , pysingleton
, pytest-mock
, pytestCheckHook , pytestCheckHook
, pythonOlder
, pyyaml , pyyaml
, tag-expressions , tag-expressions
, lxml
, pytest-mock
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "radish-bdd"; pname = "radish-bdd";
version = "0.14.0"; version = "0.14.0";
format = "setuptools";
disabled = pythonOlder "3.7";
# Pypi package does not have necessary test fixtures.
src = fetchFromGitHub { src = fetchFromGitHub {
owner = pname; owner = pname;
repo = "radish"; repo = "radish";
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
sha256 = "sha256-7C8XgGlpNVUONSfg9DsIS8Awpy6iDzFOLAFs1xpfHXI="; hash = "sha256-7C8XgGlpNVUONSfg9DsIS8Awpy6iDzFOLAFs1xpfHXI=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [
lark
click click
colorful colorful
tag-expressions
parse-type
humanize
pyyaml
docopt docopt
humanize
lark
lxml
parse-type
pysingleton pysingleton
tag-expressions
]; ];
checkInputs = [ freezegun lxml pytestCheckHook pytest-mock ]; checkInputs = [
disabledTests = [ "test_main_cli_calls" ]; freezegun
pytest-mock
pytestCheckHook
pyyaml
];
pythonImportsCheck = [
"radish"
];
disabledTests = [
"test_main_cli_calls"
];
meta = with lib; { meta = with lib; {
description = "Behaviour-Driven-Development tool for python"; description = "Behaviour-Driven-Development tool for python";