c7e6337bd0
GitOrigin-RevId: 08e4dc3a907a6dfec8bb3bbf1540d8abbffea22b
56 lines
1 KiB
Nix
56 lines
1 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pythonOlder
|
|
, poetry-core
|
|
, pytest
|
|
, colored
|
|
, invoke
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "syrupy";
|
|
version = "4.0.2";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.8.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "tophat";
|
|
repo = "syrupy";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-luYYh6L7UxW8wkp1zxR0EOmyTj0mIZ6Miy6HcVHebo4=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
poetry-core
|
|
];
|
|
|
|
buildInputs = [
|
|
pytest
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
colored
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
invoke
|
|
pytest
|
|
];
|
|
|
|
checkPhase = ''
|
|
runHook preCheck
|
|
# https://github.com/tophat/syrupy/blob/main/CONTRIBUTING.md#local-development
|
|
invoke test
|
|
runHook postCheck
|
|
'';
|
|
|
|
meta = with lib; {
|
|
changelog = "https://github.com/tophat/syrupy/releases/tag/v${version}";
|
|
description = "Pytest Snapshot Test Utility";
|
|
homepage = "https://github.com/tophat/syrupy";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ ];
|
|
};
|
|
}
|