Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / turnt / default.nix
blob27aaee039d3bf794ece2d3c545c5014da6967b2d
1 { lib, buildPythonPackage, fetchPypi, flit, click, tomli }:
3 buildPythonPackage rec {
4   pname = "turnt";
5   version = "1.11.0";
6   format = "pyproject";
8   src = fetchPypi {
9     inherit pname version;
10     hash = "sha256-XN+qzRgZMSdeBmW0OM36mQ79sRCuP8E++SqH8FOoEq0=";
11   };
13   nativeBuildInputs = [
14     flit
15   ];
17   propagatedBuildInputs = [
18     click
19     tomli
20   ];
22   doCheck = true;
24   checkPhase = ''
25     runHook preCheck
26     $out/bin/turnt test/*/*.t
27     runHook postCheck
28   '';
30   pythonImportsCheck = [ "turnt" ];
32   meta = with lib; {
33     description = "Snapshot testing tool";
34     mainProgram = "turnt";
35     homepage = "https://github.com/cucapra/turnt";
36     license = licenses.mit;
37     maintainers = with maintainers; [ leungbk ];
38   };