depot/third_party/nixpkgs/pkgs/development/python-modules/turnt/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

44 lines
743 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
flit-core,
click,
tomli,
}:
buildPythonPackage rec {
pname = "turnt";
version = "1.12.0";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-4K7cqGwKErGbZ+dxVa06v8aIfrpVLC293d29QT+vsBw=";
};
build-system = [ flit-core ];
dependencies = [
click
tomli
];
doCheck = true;
checkPhase = ''
runHook preCheck
$out/bin/turnt test/*/*.t
runHook postCheck
'';
pythonImportsCheck = [ "turnt" ];
meta = with lib; {
description = "Snapshot testing tool";
mainProgram = "turnt";
homepage = "https://github.com/cucapra/turnt";
license = licenses.mit;
maintainers = with maintainers; [ leungbk ];
};
}