Files
nixpkgs/pkgs/development/python-modules/chispa/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

44 lines
841 B
Nix

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