python310Packages.syrupy: 3.0.6 -> 4.0.1
https://github.com/tophat/syrupy/releases/tag/v4.0.0 https://github.com/tophat/syrupy/releases/tag/v4.0.1
This commit is contained in:
parent
cbf6d89a82
commit
fc31b4f09a
1 changed files with 15 additions and 4 deletions
|
@ -1,22 +1,25 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pythonOlder
|
||||
, poetry-core
|
||||
, pytest
|
||||
, colored
|
||||
, pytestCheckHook
|
||||
, invoke
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "syrupy";
|
||||
version = "3.0.6";
|
||||
version = "4.0.1";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.8.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "tophat";
|
||||
repo = "syrupy";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-8DdPgah1cWVY9YZT78otlAv7X00iwxfi+Fkn3OmLgeM=";
|
||||
hash = "sha256-BL1Z1hPMwU1duAZb3ZTWWKS/XGv8RJ6/4YoBhktd5NE=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
|
@ -32,9 +35,17 @@ buildPythonPackage rec {
|
|||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
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";
|
||||
|
|
Loading…
Reference in a new issue