This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
45 lines
956 B
Nix
45 lines
956 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";
|
|
tag = version;
|
|
hash = "sha256-gj0ooeb869JhlB9Mf5nBydiV2thTes8ys+BLJ516iSA=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools
|
|
setuptools-scm
|
|
];
|
|
|
|
propagatedBuildInputs = [ typing-extensions ];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "stringparser" ];
|
|
|
|
meta = {
|
|
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 = lib.licenses.bsd3;
|
|
maintainers = with lib.maintainers; [ evilmav ];
|
|
};
|
|
}
|