1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 regex,
7 pytestCheckHook,
8}:
9
10buildPythonPackage rec {
11 pname = "re-assert";
12 version = "1.1.0";
13 pyproject = true;
14
15 src = fetchFromGitHub {
16 owner = "asottile";
17 repo = "re-assert";
18 tag = "v${version}";
19 hash = "sha256-UTXFTD3QOKIzjq05J9Ontv5h9aClOwlPYKFXfDnBWuc=";
20 };
21
22 build-system = [ setuptools ];
23
24 dependencies = [ regex ];
25
26 pythonImportsCheck = [ "re_assert" ];
27
28 nativeCheckInputs = [ pytestCheckHook ];
29
30 meta = {
31 description = "Show where your regex match assertion failed";
32 license = lib.licenses.mit;
33 homepage = "https://github.com/asottile/re-assert";
34 };
35}