depot/third_party/nixpkgs/pkgs/development/python-modules/chispa/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

39 lines
830 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
poetry-core,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "chispa";
version = "0.10.0";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "MrPowers";
repo = "chispa";
rev = "refs/tags/v${version}";
hash = "sha256-r3/Uae/Bu/+ZpWt19jetfIRpew1hBB24WWQRJIcYqFs=";
};
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 ];
};
}