diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/jaraco-text/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/jaraco-text/default.nix | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/jaraco-text/default.nix b/nixpkgs/pkgs/development/python-modules/jaraco-text/default.nix new file mode 100644 index 000000000000..eacbf2cbfd96 --- /dev/null +++ b/nixpkgs/pkgs/development/python-modules/jaraco-text/default.nix @@ -0,0 +1,61 @@ +{ lib +, buildPythonPackage +, fetchPypi +, pythonOlder +, autocommand +, importlib-resources +, jaraco-functools +, jaraco-context +, inflect +, pathlib2 +, pytestCheckHook +, setuptools-scm +}: + +buildPythonPackage rec { + pname = "jaraco-text"; + version = "3.11.1"; + format = "pyproject"; + + disabled = pythonOlder "3.6"; + + src = fetchPypi { + pname = "jaraco.text"; + inherit version; + hash = "sha256-Mzpd8hSPcTlxhgfN81L+HZUWKXGnKZw4Dcwk2rAWiYA="; + }; + + pythonNamespaces = [ + "jaraco" + ]; + + nativeBuildInputs = [ + setuptools-scm + ]; + + propagatedBuildInputs = [ + autocommand + jaraco-context + jaraco-functools + inflect + ] ++ lib.optionals (pythonOlder "3.9") [ + importlib-resources + ]; + + nativeCheckInputs = [ + pytestCheckHook + ] ++ lib.optionals (pythonOlder "3.10") [ + pathlib2 + ]; + + pythonImportsCheck = [ + "jaraco.text" + ]; + + meta = with lib; { + description = "Module for text manipulation"; + homepage = "https://github.com/jaraco/jaraco.text"; + license = licenses.mit; + maintainers = with maintainers; [ ]; + }; +} |