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