25 buildPythonPackage rec {
26 pname = "inline-snapshot";
30 disabled = pythonOlder "3.10";
32 src = fetchFromGitHub {
34 repo = "inline-snapshot";
35 rev = "refs/tags/v${version}";
36 hash = "sha256-hwt/EFYedrml0x58Rd1AjqrIlELAXp1ku8v7glhCebE=";
39 build-system = [ hatchling ];
50 ++ lib.optionals (pythonOlder "3.11") [
66 pythonImportsCheck = [ "inline_snapshot" ];
69 # Tests don't play nice with pytest-xdist
70 "tests/test_typing.py"
74 description = "Create and update inline snapshots in Python tests";
75 homepage = "https://github.com/15r10nk/inline-snapshot/";
76 changelog = "https://github.com/15r10nk/inline-snapshot/blob/${version}/CHANGELOG.md";
77 license = licenses.mit;
78 maintainers = with maintainers; [ fab ];