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