Something went wrong. Try again.
lol
Something went wrong. Try again.
1.5 kB · 81 lines
Nix
at master
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182{ lib, asttokens, black, buildPythonPackage, dirty-equals, executing, fetchFromGitHub, freezegun, hatchling, hypothesis, isort, pydantic, pytest, pytest-freezer, pytest-mock, pytest-xdist, pytestCheckHook, rich, time-machine, typing-extensions,}:
buildPythonPackage rec { pname = "inline-snapshot"; version = "0.32.5"; pyproject = true;
src = fetchFromGitHub { owner = "15r10nk"; repo = "inline-snapshot"; tag = version; hash = "sha256-xnooMIm0UiNOWrZ4JZwbpFzliGsTF7b1DAXi1fxMb30="; };
build-system = [ hatchling ];
buildInputs = [ pytest ];
dependencies = [ asttokens executing rich typing-extensions ];
nativeCheckInputs = [ freezegun hypothesis isort pydantic 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 ]; };}