otadump: init at 0.1.2 (#329129)
[NixPkgs.git] / pkgs / development / python-modules / turnt / default.nix
blob8d9af7740283df3d8d7377941b895b904d7f57d3
2   lib,
3   buildPythonPackage,
4   fetchPypi,
5   flit-core,
6   click,
7   tomli,
8 }:
10 buildPythonPackage rec {
11   pname = "turnt";
12   version = "1.12.0";
13   pyproject = true;
15   src = fetchPypi {
16     inherit pname version;
17     hash = "sha256-4K7cqGwKErGbZ+dxVa06v8aIfrpVLC293d29QT+vsBw=";
18   };
20   build-system = [ flit-core ];
22   dependencies = [
23     click
24     tomli
25   ];
27   checkPhase = ''
28     runHook preCheck
29     $out/bin/turnt test/*/*.t
30     runHook postCheck
31   '';
33   pythonImportsCheck = [ "turnt" ];
35   meta = with lib; {
36     description = "Snapshot testing tool";
37     mainProgram = "turnt";
38     homepage = "https://github.com/cucapra/turnt";
39     license = licenses.mit;
40     maintainers = with maintainers; [ leungbk ];
41   };