beautysh, python3.pkgs.beautysh: move into python-modules

This commit is contained in:
Theodore Ni 2023-08-22 01:29:34 -07:00
parent d2d2edea93
commit eab405751b
No known key found for this signature in database
GPG key ID: 48B67583BDDD4474
3 changed files with 19 additions and 11 deletions

View file

@ -1,10 +1,16 @@
{ lib
, buildPythonPackage
, colorama
, fetchFromGitHub
, fetchpatch
, python3
, poetry-core
, pytestCheckHook
, setuptools
, types-colorama
, types-setuptools
}:
python3.pkgs.buildPythonApplication rec {
buildPythonPackage rec {
pname = "beautysh";
version = "6.2.1";
format = "pyproject";
@ -25,26 +31,26 @@ python3.pkgs.buildPythonApplication rec {
})
];
nativeBuildInputs = with python3.pkgs; [
postPatch = ''
substituteInPlace pyproject.toml \
--replace 'types-setuptools = "^57.4.0"' 'types-setuptools = "*"'
'';
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = with python3.pkgs; [
propagatedBuildInputs = [
colorama
setuptools
types-colorama
types-setuptools
];
nativeCheckInputs = with python3.pkgs; [
nativeCheckInputs = [
pytestCheckHook
];
postPatch = ''
substituteInPlace pyproject.toml \
--replace 'types-setuptools = "^57.4.0"' 'types-setuptools = "*"'
'';
pythonImportsCheck = [
"beautysh"
];

View file

@ -4198,7 +4198,7 @@ with pkgs;
inherit (plasma5Packages) breeze-icons;
};
beautysh = callPackage ../development/tools/beautysh { };
beautysh = with python3.pkgs; toPythonApplication beautysh;
bc = callPackage ../tools/misc/bc { };

View file

@ -1310,6 +1310,8 @@ self: super: with self; {
beautifultable = callPackage ../development/python-modules/beautifultable { };
beautysh = callPackage ../development/python-modules/beautysh { };
bech32 = callPackage ../development/python-modules/bech32 { };
behave = callPackage ../development/python-modules/behave { };