depot/third_party/nixpkgs/pkgs/development/python-modules/turnt/default.nix
Default email 5e7c2d6cef Project import generated by Copybara.
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
2023-10-09 21:29:22 +02:00

38 lines
717 B
Nix

{ lib, buildPythonPackage, fetchPypi, flit, click, tomli }:
buildPythonPackage rec {
pname = "turnt";
version = "1.11.0";
format = "pyproject";
src = fetchPypi {
inherit pname version;
hash = "sha256-XN+qzRgZMSdeBmW0OM36mQ79sRCuP8E++SqH8FOoEq0=";
};
nativeBuildInputs = [
flit
];
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 ];
};
}