1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 poetry-core,
6 pythonOlder,
7 setuptools,
8 prettytable,
9}:
10
11buildPythonPackage rec {
12 pname = "chispa";
13 version = "0.11.1";
14 format = "pyproject";
15
16 disabled = pythonOlder "3.7";
17
18 src = fetchFromGitHub {
19 owner = "MrPowers";
20 repo = "chispa";
21 tag = "v${version}";
22 hash = "sha256-M4iYKWXI0wBSHt1tWd0vGvQ6FLRRE9TB2u6sTJnkFpY=";
23 };
24
25 build-system = [ poetry-core ];
26
27 dependencies = [
28 setuptools
29 prettytable
30 ];
31
32 # Tests require a spark installation
33 doCheck = false;
34
35 # pythonImportsCheck needs spark installation
36
37 meta = with lib; {
38 description = "PySpark test helper methods with beautiful error messages";
39 homepage = "https://github.com/MrPowers/chispa";
40 license = licenses.mit;
41 maintainers = with maintainers; [ ratsclub ];
42 };
43}