2022-08-21 13:32:41 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, click, tomli }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "turnt";
|
2023-01-20 10:41:00 +00:00
|
|
|
version = "1.9.0";
|
2022-08-21 13:32:41 +00:00
|
|
|
format = "flit";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-X0uJmY2MVnvM50LDBXDn9hK4NuHAil4Kf39V/8b8OIQ=";
|
2022-08-21 13:32:41 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
click
|
|
|
|
tomli
|
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
runHook preCheck
|
|
|
|
$out/bin/turnt test/*/*.t
|
|
|
|
runHook postCheck
|
|
|
|
'';
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "turnt" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Snapshot testing tool";
|
|
|
|
homepage = "https://github.com/cucapra/turnt";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ leungbk ];
|
|
|
|
};
|
|
|
|
}
|