diff --git a/pkgs/development/python-modules/textwrap3/default.nix b/pkgs/development/python-modules/textwrap3/default.nix new file mode 100644 index 000000000000..5b8e10db83ea --- /dev/null +++ b/pkgs/development/python-modules/textwrap3/default.nix @@ -0,0 +1,37 @@ +{ lib +, buildPythonPackage +, fetchPypi +, tox +, pytest +, coverage +, pytestcov +}: + +buildPythonPackage rec { + pname = "textwrap3"; + version = "0.9.2"; + + src = fetchPypi { + inherit pname version; + extension = "zip"; + sha256 = "5008eeebdb236f6303dcd68f18b856d355f6197511d952ba74bc75e40e0c3414"; + }; + + checkInputs = [ + tox + pytest + coverage + pytestcov + ]; + + checkPhase = '' + pytest + ''; + + meta = with lib; { + description = "Textwrap from Python 3.6 backport plus a few tweaks"; + homepage = https://github.com/jonathaneunice/textwrap3; + license = licenses.psfl; + maintainers = [ maintainers.costrouc ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index e9d766d1ee3a..fd583c54a8a8 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5254,7 +5254,9 @@ in { texttable = callPackage ../development/python-modules/texttable { }; - tiledb = callPackage ../development/python-modules/tiledb { + textwrap3 = callPackage ../development/python-modules/textwrap3 { }; + + tiledb = callPackage ../development/python-modules/tiledb { inherit (pkgs) tiledb; };