2025-01-01 15:49:22 +09:00

36 lines
677 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
regex,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "re-assert";
version = "1.1.0";
pyproject = true;
src = fetchFromGitHub {
owner = "asottile";
repo = "re-assert";
tag = "v${version}";
hash = "sha256-UTXFTD3QOKIzjq05J9Ontv5h9aClOwlPYKFXfDnBWuc=";
};
build-system = [ setuptools ];
dependencies = [ regex ];
pythonImportsCheck = [ "re_assert" ];
nativeCheckInputs = [ pytestCheckHook ];
meta = {
description = "Show where your regex match assertion failed";
license = lib.licenses.mit;
homepage = "https://github.com/asottile/re-assert";
};
}