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