summary refs log tree commit diff
path: root/pkgs/development/python-modules/chispa/default.nix
blob: 3410789c21cc3105e9bf18065ed9bbb4f16098ad (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{ buildPythonPackage, fetchFromGitHub, lib, poetry-core, pyspark }:

buildPythonPackage rec {
  pname = "chispa";
  version = "0.8.3";
  format = "pyproject";

  src = fetchFromGitHub {
    repo = "chispa";
    owner = "MrPowers";
    rev = "v${version}";
    sha256 = "sha256-1ePx8VbU8pMd5EsZhFp6qyMptlUxpoCvJfuDm9xXOdc=";
  };

  checkInputs = [ pyspark ];

  nativeBuildInputs = [ poetry-core ];

  pythonImportsCheck = [ "chispa" ];

  meta = with lib; {
    homepage = "https://github.com/MrPowers/chispa";
    description = "PySpark test helper methods with beautiful error messages";
    license = licenses.mit;
    maintainers = with maintainers; [ ratsclub ];
  };
}