depot/third_party/nixpkgs/pkgs/development/python-modules/turnt/default.nix
Default email 5e9e1146e1 Project import generated by Copybara.
GitOrigin-RevId: 18036c0be90f4e308ae3ebcab0e14aae0336fe42
2023-08-05 00:07:22 +02:00

34 lines
667 B
Nix

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