diff --git a/pkgs/development/python-modules/error-helper/default.nix b/pkgs/development/python-modules/error-helper/default.nix new file mode 100644 index 000000000000..4a93a3df9655 --- /dev/null +++ b/pkgs/development/python-modules/error-helper/default.nix @@ -0,0 +1,41 @@ +{ + lib, + buildPythonPackage, + fetchPypi, + + # build-system + hatchling, +}: + +buildPythonPackage (finalAttrs: { + pname = "error-helper"; + version = "1.5"; + pyproject = true; + __structuredAttrs = true; + + # GitHub source doesn't build correctly (fails imports check) + src = fetchPypi { + inherit (finalAttrs) version; + pname = "error_helper"; + hash = "sha256-7kbzGmidsZzhoE5p9Ddjn6oDc+HUzkN02ykS0e0JodY="; + }; + + build-system = [ + hatchling + ]; + + # No tests in the Pypi archive. + doCheck = false; + + pythonImportsCheck = [ "error_helper" ]; + + meta = { + description = "Minimalistic python module to print colorful messages"; + homepage = "https://github.com/30350n/error_helper"; + changelog = "https://github.com/30350n/error_helper/releases/tag/${finalAttrs.version}"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ + gigahawk + ]; + }; +}) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index de72f0a01754..d7a7653893cc 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5122,6 +5122,8 @@ self: super: with self; { eradicate = callPackage ../development/python-modules/eradicate { }; + error-helper = callPackage ../development/python-modules/error-helper { }; + es-client = callPackage ../development/python-modules/es-client { }; escapism = callPackage ../development/python-modules/escapism { };