From 6b6d9477169f29977517b9f88f1a3e1b97a941bf Mon Sep 17 00:00:00 2001 From: Ilya Elenskiy Date: Sat, 13 May 2023 00:33:44 +0200 Subject: python3Packages.stringparser: init at 0.6 --- .../python-modules/stringparser/default.nix | 36 ++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 pkgs/development/python-modules/stringparser/default.nix (limited to 'pkgs/development/python-modules/stringparser/default.nix') 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 ]; + }; +} -- cgit v1.2.3