2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
2024-09-19 14:19:46 +00:00
|
|
|
flit-core,
|
2024-06-05 15:53:02 +00:00
|
|
|
click,
|
|
|
|
tomli,
|
|
|
|
}:
|
2022-08-21 13:32:41 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "turnt";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "1.12.0";
|
|
|
|
pyproject = true;
|
2022-08-21 13:32:41 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-4K7cqGwKErGbZ+dxVa06v8aIfrpVLC293d29QT+vsBw=";
|
2022-08-21 13:32:41 +00:00
|
|
|
};
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
build-system = [ flit-core ];
|
2023-10-09 19:29:22 +00:00
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
dependencies = [
|
2022-08-21 13:32:41 +00:00
|
|
|
click
|
|
|
|
tomli
|
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
runHook preCheck
|
|
|
|
$out/bin/turnt test/*/*.t
|
|
|
|
runHook postCheck
|
|
|
|
'';
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "turnt" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Snapshot testing tool";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "turnt";
|
2022-08-21 13:32:41 +00:00
|
|
|
homepage = "https://github.com/cucapra/turnt";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ leungbk ];
|
|
|
|
};
|
|
|
|
}
|