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