fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
44 lines
973 B
Nix
44 lines
973 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
setuptools,
|
|
setuptools-scm,
|
|
typing-extensions,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "stringparser";
|
|
version = "0.7";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "hgrecco";
|
|
repo = "stringparser";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-gj0ooeb869JhlB9Mf5nBydiV2thTes8ys+BLJ516iSA=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools
|
|
setuptools-scm
|
|
];
|
|
|
|
propagatedBuildInputs = [ typing-extensions ];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "stringparser" ];
|
|
|
|
meta = with lib; {
|
|
description = "Easy to use pattern matching and information extraction";
|
|
homepage = "https://github.com/hgrecco/stringparser";
|
|
changelog = "https://github.com/hgrecco/stringparser/blob/${version}/CHANGES";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ evilmav ];
|
|
};
|
|
}
|