159e378cbb
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
44 lines
743 B
Nix
44 lines
743 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
flit-core,
|
|
click,
|
|
tomli,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "turnt";
|
|
version = "1.12.0";
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-4K7cqGwKErGbZ+dxVa06v8aIfrpVLC293d29QT+vsBw=";
|
|
};
|
|
|
|
build-system = [ flit-core ];
|
|
|
|
dependencies = [
|
|
click
|
|
tomli
|
|
];
|
|
|
|
doCheck = true;
|
|
|
|
checkPhase = ''
|
|
runHook preCheck
|
|
$out/bin/turnt test/*/*.t
|
|
runHook postCheck
|
|
'';
|
|
|
|
pythonImportsCheck = [ "turnt" ];
|
|
|
|
meta = with lib; {
|
|
description = "Snapshot testing tool";
|
|
mainProgram = "turnt";
|
|
homepage = "https://github.com/cucapra/turnt";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ leungbk ];
|
|
};
|
|
}
|