diff --git a/pkgs/development/python-modules/types-colorama/default.nix b/pkgs/development/python-modules/types-colorama/default.nix new file mode 100644 index 000000000000..52877881296a --- /dev/null +++ b/pkgs/development/python-modules/types-colorama/default.nix @@ -0,0 +1,25 @@ +{ lib +, buildPythonPackage +, fetchPypi +}: + +buildPythonPackage rec { + pname = "types-colorama"; + version = "0.4.15"; + format = "setuptools"; + + src = fetchPypi { + inherit pname version; + hash = "sha256-/RKLHjLz/s7F8J30Nm0hSY7obqMfz4tOjxrebQu/mDI="; + }; + + # Module has no tests + doCheck = false; + + meta = with lib; { + description = "Typing stubs for colorama"; + homepage = "https://github.com/python/typeshed"; + license = licenses.asl20; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/development/tools/beautysh/default.nix b/pkgs/development/tools/beautysh/default.nix new file mode 100644 index 000000000000..f01857fc6086 --- /dev/null +++ b/pkgs/development/tools/beautysh/default.nix @@ -0,0 +1,49 @@ +{ lib +, fetchFromGitHub +, python3 +}: + +python3.pkgs.buildPythonApplication rec { + pname = "beautysh"; + version = "6.2.1"; + format = "pyproject"; + + + src = fetchFromGitHub { + owner = "lovesegfault"; + repo = pname; + rev = "v${version}"; + hash = "sha256-rPeGRcyNK45Y7OvtzaIH93IIzexBf/jM1SzYP0phQ1o="; + }; + + nativeBuildInputs = with python3.pkgs; [ + poetry-core + ]; + + propagatedBuildInputs = with python3.pkgs; [ + colorama + setuptools + types-colorama + types-setuptools + ]; + + checkInputs = with python3.pkgs; [ + pytestCheckHook + ]; + + postPatch = '' + substituteInPlace pyproject.toml \ + --replace 'types-setuptools = "^57.4.0"' 'types-setuptools = "*"' + ''; + + pythonImportsCheck = [ + "beautysh" + ]; + + meta = with lib; { + description = "Tool for beautifying Bash scripts"; + homepage = "https://github.com/lovesegfault/beautysh"; + license = with licenses; [ asl20 ]; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 7c306547396c..3a73b98a6b17 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -2953,6 +2953,8 @@ with pkgs; inherit (plasma5Packages) breeze-icons; }; + beautysh = callPackage ../development/tools/beautysh { }; + bc = callPackage ../tools/misc/bc { }; bdf2psf = callPackage ../tools/misc/bdf2psf { }; diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 65a387a1310c..63218f729214 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -11217,6 +11217,8 @@ in { typer = callPackage ../development/python-modules/typer { }; + types-colorama = callPackage ../development/python-modules/types-colorama { }; + types-dateutil = callPackage ../development/python-modules/types-dateutil { }; types-decorator = callPackage ../development/python-modules/types-decorator { };