Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, buildPythonPackage, fetchPypi, click, tomli }: 2 3buildPythonPackage rec { 4 pname = "turnt"; 5 version = "1.11.0"; 6 format = "flit"; 7 8 src = fetchPypi { 9 inherit pname version; 10 hash = "sha256-XN+qzRgZMSdeBmW0OM36mQ79sRCuP8E++SqH8FOoEq0="; 11 }; 12 13 propagatedBuildInputs = [ 14 click 15 tomli 16 ]; 17 18 doCheck = true; 19 20 checkPhase = '' 21 runHook preCheck 22 $out/bin/turnt test/*/*.t 23 runHook postCheck 24 ''; 25 26 pythonImportsCheck = [ "turnt" ]; 27 28 meta = with lib; { 29 description = "Snapshot testing tool"; 30 homepage = "https://github.com/cucapra/turnt"; 31 license = licenses.mit; 32 maintainers = with maintainers; [ leungbk ]; 33 }; 34}