mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-29 00:53:57 +00:00
fc31b4f09a
https://github.com/tophat/syrupy/releases/tag/v4.0.0 https://github.com/tophat/syrupy/releases/tag/v4.0.1
57 lines
1.0 KiB
Nix
57 lines
1.0 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pythonOlder
|
|
, poetry-core
|
|
, pytest
|
|
, colored
|
|
, invoke
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "syrupy";
|
|
version = "4.0.1";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.8.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "tophat";
|
|
repo = "syrupy";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-BL1Z1hPMwU1duAZb3ZTWWKS/XGv8RJ6/4YoBhktd5NE=";
|
|
};
|
|
|
|
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; [ ];
|
|
};
|
|
}
|