summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/stringparser
diff options
context:
space:
mode:
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>2023-06-05 00:13:41 +0000
committerGitHub <noreply@github.com>2023-06-05 00:13:41 +0000
commitdd2d950a06ba0ea647600e021fdae2b4fd644c19 (patch)
tree12950ec9be3d776141d5b0234bf24d014fd1197e /pkgs/development/python-modules/stringparser
parent0e5a0abb85462f9cdc5b971416bf3663150355f1 (diff)
parent87a0230e64d5100c972de1dec96996bc985a1ebe (diff)
Merge master into haskell-updates
Diffstat (limited to 'pkgs/development/python-modules/stringparser')
-rw-r--r--pkgs/development/python-modules/stringparser/default.nix36
1 files changed, 36 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/stringparser/default.nix b/pkgs/development/python-modules/stringparser/default.nix
new file mode 100644
index 000000000000..bac315950781
--- /dev/null
+++ b/pkgs/development/python-modules/stringparser/default.nix
@@ -0,0 +1,36 @@
+{ lib
+, buildPythonPackage
+, pythonOlder
+, fetchFromGitHub
+, setuptools
+, setuptools-scm
+, pytestCheckHook
+}:
+
+buildPythonPackage rec {
+ pname = "stringparser";
+ version = "0.6";
+ format = "setuptools";
+
+ disabled = pythonOlder "3.5";
+
+ src = fetchFromGitHub {
+ owner = "hgrecco";
+ repo = pname;
+ rev = version;
+ sha256 = "sha256-uyeHuH0UfpZqh7sMRI6+fR/Rr2jSzdR+5O/MtzslO5w=";
+ };
+
+ nativeBuildInputs = [ setuptools setuptools-scm ];
+
+ pythonImportsCheck = [ "stringparser" ];
+
+ nativeCheckInputs = [ pytestCheckHook ];
+
+ meta = with lib; {
+ description = "Easy to use pattern matching and information extraction";
+ homepage = "https://github.com/hgrecco/stringparser";
+ license = licenses.bsd3;
+ maintainers = with maintainers; [ evilmav ];
+ };
+}