python310Packages.chispa: disable tests and adjust inputs

This commit is contained in:
Fabian Affolter 2022-10-28 14:24:53 +02:00
parent f58d434f56
commit e365bd6c5a

View file

@ -1,26 +1,41 @@
{ buildPythonPackage, fetchFromGitHub, lib, poetry-core, pyspark }: { lib
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, pythonOlder
, setuptools
}:
buildPythonPackage rec { buildPythonPackage rec {
pname = "chispa"; pname = "chispa";
version = "0.8.3"; version = "0.8.3";
format = "pyproject"; format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub { src = fetchFromGitHub {
repo = "chispa";
owner = "MrPowers"; owner = "MrPowers";
repo = "chispa";
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-1ePx8VbU8pMd5EsZhFp6qyMptlUxpoCvJfuDm9xXOdc="; hash = "sha256-1ePx8VbU8pMd5EsZhFp6qyMptlUxpoCvJfuDm9xXOdc=";
}; };
checkInputs = [ pyspark ]; nativeBuildInputs = [
poetry-core
];
nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [
setuptools
];
pythonImportsCheck = [ "chispa" ]; # Tests require a spark installation
doCheck = false;
# pythonImportsCheck needs spark installation
meta = with lib; { meta = with lib; {
homepage = "https://github.com/MrPowers/chispa";
description = "PySpark test helper methods with beautiful error messages"; description = "PySpark test helper methods with beautiful error messages";
homepage = "https://github.com/MrPowers/chispa";
license = licenses.mit; license = licenses.mit;
maintainers = with maintainers; [ ratsclub ]; maintainers = with maintainers; [ ratsclub ];
}; };