1{ lib
2, buildPythonPackage
3, pythonOlder
4, fetchFromGitHub
5, setuptools
6, setuptools-scm
7, pytestCheckHook
8}:
9
10buildPythonPackage rec {
11 pname = "stringparser";
12 version = "0.6";
13 format = "setuptools";
14
15 disabled = pythonOlder "3.5";
16
17 src = fetchFromGitHub {
18 owner = "hgrecco";
19 repo = pname;
20 rev = version;
21 sha256 = "sha256-uyeHuH0UfpZqh7sMRI6+fR/Rr2jSzdR+5O/MtzslO5w=";
22 };
23
24 nativeBuildInputs = [ setuptools setuptools-scm ];
25
26 pythonImportsCheck = [ "stringparser" ];
27
28 nativeCheckInputs = [ pytestCheckHook ];
29
30 meta = with lib; {
31 description = "Easy to use pattern matching and information extraction";
32 homepage = "https://github.com/hgrecco/stringparser";
33 license = licenses.bsd3;
34 maintainers = with maintainers; [ evilmav ];
35 };
36}