1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 hatchling,
6 pytestCheckHook,
7 regex,
8}:
9
10buildPythonPackage rec {
11 pname = "backrefs";
12 version = "6.0.1";
13 pyproject = true;
14
15 src = fetchFromGitHub {
16 owner = "facelessuser";
17 repo = "backrefs";
18 tag = version;
19 hash = "sha256-7kB8z8pNU6eLuz4eSYXkSDL5npowlYsm0hjjh8zcAK0=";
20 };
21
22 build-system = [
23 hatchling
24 ];
25
26 pythonImportsCheck = [ "backrefs" ];
27
28 nativeCheckInputs = [
29 pytestCheckHook
30 regex
31 ];
32
33 meta = {
34 description = "Wrapper around re or regex that adds additional back references";
35 homepage = "https://github.com/facelessuser/backrefs";
36 changelog = "https://github.com/facelessuser/backrefs/releases/tag/${src.tag}";
37 license = lib.licenses.mit;
38 maintainers = with lib.maintainers; [ ];
39 };
40}