nixpkgs/pkgs/development/python-modules/chispa/default.nix
2024-11-08 14:25:09 +01:00

44 lines
853 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
poetry-core,
pythonOlder,
setuptools,
prettytable,
}:
buildPythonPackage rec {
pname = "chispa";
version = "0.10.1";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "MrPowers";
repo = "chispa";
rev = "refs/tags/v${version}";
hash = "sha256-WPtn8YGlj67MEy2onxoU5SctQ7NcvTImaU0VgMoz2B4=";
};
build-system = [ poetry-core ];
dependencies = [
setuptools
prettytable
];
# Tests require a spark installation
doCheck = false;
# pythonImportsCheck needs spark installation
meta = with lib; {
description = "PySpark test helper methods with beautiful error messages";
homepage = "https://github.com/MrPowers/chispa";
license = licenses.mit;
maintainers = with maintainers; [ ratsclub ];
};
}