mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 23:23:07 +00:00
ffb0f100d9
Diff: https://github.com/tophat/syrupy/compare/refs/tags/v4.5.0...v4.6.0 Changelog: https://github.com/tophat/syrupy/releases/tag/v4.6.0
59 lines
1.1 KiB
Nix
59 lines
1.1 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, python
|
|
, poetry-core
|
|
, pytest
|
|
, colored
|
|
, invoke
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "syrupy";
|
|
version = "4.6.0";
|
|
format = "pyproject";
|
|
|
|
disabled = lib.versionOlder python.version "3.8.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "tophat";
|
|
repo = "syrupy";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-FjDGwSOKvDWx+LwUCNGEOBKV3rFG+09gtFpLLi0xgD4=";
|
|
};
|
|
|
|
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
|
|
'';
|
|
|
|
pythonImportsCheck = [ "syrupy" ];
|
|
|
|
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; [ ];
|
|
};
|
|
}
|