diff --git a/pkgs/development/python-modules/nuclear/default.nix b/pkgs/development/python-modules/nuclear/default.nix new file mode 100644 index 000000000000..ac7d35419835 --- /dev/null +++ b/pkgs/development/python-modules/nuclear/default.nix @@ -0,0 +1,54 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + colorama, + mock, + pyyaml, + pydantic, + backoff, + setuptools, +}: + +buildPythonPackage rec { + pname = "nuclear"; + version = "2.2.5"; + pyproject = true; + + src = fetchFromGitHub { + owner = "igrek51"; + repo = "nuclear"; + rev = version; + hash = "sha256-JuO7BKmlQE6bWKqy1QvX5U4A9YkKu/4ouTSJh9R7JGo="; + }; + + build-system = [ setuptools ]; + dependencies = [ + colorama + pyyaml + ]; + + nativeCheckInputs = [ + pytestCheckHook + mock + pydantic + backoff + ]; + disabledTestPaths = [ + # Disabled because test tries to install bash in a non-NixOS way + "tests/autocomplete/test_bash_install.py" + ]; + disabledTests = [ + # Setting the time zone in nix sandbox does not work - to be investigated + "test_context_logger" + ]; + pythonImportsCheck = [ "nuclear" ]; + + meta = with lib; { + homepage = "https://igrek51.github.io/nuclear/"; + description = "Binding glue for CLI Python applications"; + license = licenses.mit; + maintainers = with maintainers; [ parras ]; + }; +} diff --git a/pkgs/development/python-modules/wat/default.nix b/pkgs/development/python-modules/wat/default.nix new file mode 100644 index 000000000000..7ea81661648f --- /dev/null +++ b/pkgs/development/python-modules/wat/default.nix @@ -0,0 +1,38 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + nuclear, + pydantic, + setuptools, +}: + +buildPythonPackage rec { + pname = "wat"; + version = "0.1.2"; + pyproject = true; + + src = fetchFromGitHub { + owner = "igrek51"; + repo = "wat"; + rev = version; + hash = "sha256-ibbWM2L/GoJVg8RxtsBSBn/qA+KIkC5+wq5YH6mtiUs="; + }; + + build-system = [ setuptools ]; + + nativeCheckInputs = [ + pytestCheckHook + nuclear + pydantic + ]; + pythonImportsCheck = [ "wat" ]; + + meta = with lib; { + homepage = "https://igrek51.github.io/wat/"; + description = "Deep inspection of python objects"; + license = licenses.mit; + maintainers = with maintainers; [ parras ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 214ad79ad612..43d0cf17b055 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -9166,6 +9166,8 @@ self: super: with self; { ntplib = callPackage ../development/python-modules/ntplib { }; + nuclear = callPackage ../development/python-modules/nuclear { }; + nuitka = callPackage ../development/python-modules/nuitka { }; nuheat = callPackage ../development/python-modules/nuheat { }; @@ -17194,6 +17196,8 @@ self: super: with self; { wasmerPackages = pkgs.recurseIntoAttrs (callPackage ../development/python-modules/wasmer { }); inherit (self.wasmerPackages) wasmer wasmer-compiler-cranelift wasmer-compiler-llvm wasmer-compiler-singlepass; + wat = callPackage ../development/python-modules/wat { }; + watchdog = callPackage ../development/python-modules/watchdog { inherit (pkgs.darwin.apple_sdk.frameworks) CoreServices; };