92b3d6365d
GitOrigin-RevId: 412b9917cea092f3d39f9cd5dead4effd5bc4053
42 lines
823 B
Nix
42 lines
823 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, poetry-core
|
|
, pythonOlder
|
|
, setuptools
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "chispa";
|
|
version = "0.8.3";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "MrPowers";
|
|
repo = "chispa";
|
|
rev = "v${version}";
|
|
hash = "sha256-1ePx8VbU8pMd5EsZhFp6qyMptlUxpoCvJfuDm9xXOdc=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
poetry-core
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
setuptools
|
|
];
|
|
|
|
# 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 ];
|
|
};
|
|
}
|