Files
nixpkgs/pkgs/development/python-modules/inline-snapshot/default.nix
T
Martin Weinelt b79da2786f Merge remote-tracking branch 'origin/master' into staging-next
Conflicts:
	pkgs/development/python-modules/bundlewrap/default.nix
	pkgs/development/python-modules/coverage/default.nix
	pkgs/development/python-modules/h5netcdf/default.nix
	pkgs/development/python-modules/hypothesis/default.nix
	pkgs/development/python-modules/numba/default.nix
	pkgs/development/python-modules/optype/default.nix
	pkgs/development/python-modules/setuptools-git-versioning/default.nix
	pkgs/development/python-modules/sphinx/default.nix
2026-02-15 16:17:41 +01:00

77 lines
1.4 KiB
Nix

{
lib,
asttokens,
black,
buildPythonPackage,
dirty-equals,
executing,
fetchFromGitHub,
freezegun,
hatchling,
hypothesis,
pydantic,
pyright,
pytest-freezer,
pytest-mock,
pytest-xdist,
pytestCheckHook,
rich,
time-machine,
toml,
}:
buildPythonPackage rec {
pname = "inline-snapshot";
version = "0.31.1";
pyproject = true;
src = fetchFromGitHub {
owner = "15r10nk";
repo = "inline-snapshot";
tag = version;
hash = "sha256-45e3M7WjGLhmn1Tdf7fD04jSA32TvB0QmFzvywJc3Ac=";
};
build-system = [ hatchling ];
dependencies = [
asttokens
executing
rich
toml
];
nativeCheckInputs = [
freezegun
hypothesis
pydantic
pyright
pytest-freezer
pytest-mock
pytest-xdist
pytestCheckHook
time-machine
]
++ lib.concatAttrValues optional-dependencies;
optional-dependencies = {
black = [ black ];
dirty-equals = [ dirty-equals ];
};
pythonImportsCheck = [ "inline_snapshot" ];
disabledTestPaths = [
# Tests don't play nice with pytest-xdist
"tests/test_typing.py"
];
meta = {
description = "Create and update inline snapshots in Python tests";
homepage = "https://github.com/15r10nk/inline-snapshot/";
changelog = "https://github.com/15r10nk/inline-snapshot/blob/${src.tag}/CHANGELOG.md";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
}