depot/third_party/nixpkgs/pkgs/development/python-modules/turnt/default.nix
Default email 13da32182d Project import generated by Copybara.
GitOrigin-RevId: a7855f2235a1876f97473a76151fec2afa02b287
2022-08-21 15:32:41 +02:00

34 lines
681 B
Nix

{ lib, buildPythonPackage, fetchPypi, click, tomli }:
buildPythonPackage rec {
pname = "turnt";
version = "1.8.0";
format = "flit";
src = fetchPypi {
inherit pname version;
sha256 = "c6cfcb68a3353032c4ce6fff352196e723d05f9cee23eaf4f36d4dcfd89b8e49";
};
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 ];
};
}