mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 06:03:40 +00:00
35 lines
667 B
Nix
35 lines
667 B
Nix
{ lib, buildPythonPackage, fetchPypi, click, tomli }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "turnt";
|
|
version = "1.10.0";
|
|
format = "flit";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-pwUNmUvyUYxke39orGkziL3DVRWoJY5AQLz/pTyf3M8=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|