1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytestCheckHook,
6 pythonOlder,
7 setuptools,
8 setuptools-scm,
9 typing-extensions,
10}:
11
12buildPythonPackage rec {
13 pname = "stringparser";
14 version = "0.7";
15 pyproject = true;
16
17 disabled = pythonOlder "3.9";
18
19 src = fetchFromGitHub {
20 owner = "hgrecco";
21 repo = "stringparser";
22 tag = version;
23 hash = "sha256-gj0ooeb869JhlB9Mf5nBydiV2thTes8ys+BLJ516iSA=";
24 };
25
26 nativeBuildInputs = [
27 setuptools
28 setuptools-scm
29 ];
30
31 propagatedBuildInputs = [ typing-extensions ];
32
33 nativeCheckInputs = [ pytestCheckHook ];
34
35 pythonImportsCheck = [ "stringparser" ];
36
37 meta = with lib; {
38 description = "Easy to use pattern matching and information extraction";
39 homepage = "https://github.com/hgrecco/stringparser";
40 changelog = "https://github.com/hgrecco/stringparser/blob/${version}/CHANGES";
41 license = licenses.bsd3;
42 maintainers = with maintainers; [ evilmav ];
43 };
44}