Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.5 kB · 80 lines
Nix
at gcc-offload
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081{ lib, asttokens, black, buildPythonPackage, click, dirty-equals, executing, fetchFromGitHub, hatchling, hypothesis, pydantic, pyright, pytest-subtests, pytest-xdist, pytestCheckHook, pythonOlder, rich, time-machine, toml, types-toml, typing-extensions,}:
buildPythonPackage rec { pname = "inline-snapshot"; version = "0.13.3"; pyproject = true;
disabled = pythonOlder "3.10";
src = fetchFromGitHub { owner = "15r10nk"; repo = "inline-snapshot"; rev = "refs/tags/v${version}"; hash = "sha256-hwt/EFYedrml0x58Rd1AjqrIlELAXp1ku8v7glhCebE="; };
build-system = [ hatchling ];
dependencies = [ asttokens black click executing rich typing-extensions ] ++ lib.optionals (pythonOlder "3.11") [ types-toml toml ];
nativeCheckInputs = [ dirty-equals hypothesis pydantic pyright pytest-subtests pytest-xdist pytestCheckHook time-machine ];
pythonImportsCheck = [ "inline_snapshot" ];
disabledTestPaths = [ # Tests don't play nice with pytest-xdist "tests/test_typing.py" ];
meta = with lib; { description = "Create and update inline snapshots in Python tests"; homepage = "https://github.com/15r10nk/inline-snapshot/"; changelog = "https://github.com/15r10nk/inline-snapshot/blob/${version}/CHANGELOG.md"; license = licenses.mit; maintainers = with maintainers; [ fab ]; };}