Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.5 kB · 82 lines
Nix
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283{ lib, asttokens, black, buildPythonPackage, dirty-equals, executing, fetchFromGitHub, freezegun, hatchling, hypothesis, pydantic, pyright, pytest-freezer, pytest-mock, pytest-subtests, pytest-xdist, pytestCheckHook, pythonOlder, rich, time-machine, toml,}:
buildPythonPackage rec { pname = "inline-snapshot"; version = "0.23.0"; pyproject = true;
src = fetchFromGitHub { owner = "15r10nk"; repo = "inline-snapshot"; tag = version; hash = "sha256-UiVxG9W1lwvvoflVey4250iL8gL8Tm41LBo0ab0tTqk="; };
build-system = [ hatchling ];
dependencies = [ asttokens executing rich toml ] ++ lib.optionals (pythonOlder "3.11") [ toml ];
nativeCheckInputs = [ freezegun hypothesis pydantic pyright pytest-freezer pytest-mock pytest-subtests pytest-xdist pytestCheckHook time-machine ] ++ lib.flatten (lib.attrValues 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 = 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/${src.tag}/CHANGELOG.md"; license = licenses.mit; maintainers = with maintainers; [ fab ]; };}