From e31b67579830d4c42149358a9d8e6742f5f42fc6 Mon Sep 17 00:00:00 2001 From: Philipp Arras Date: Fri, 26 Jul 2024 17:32:57 +0200 Subject: [PATCH 1/2] python3Packages.nuclear: init at 2.2.5 --- .../python-modules/nuclear/default.nix | 54 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 56 insertions(+) create mode 100644 pkgs/development/python-modules/nuclear/default.nix 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/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 7c5ac7cbb3fc..745e9a234b3c 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -9163,6 +9163,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 { }; From b09e79ff25e75a48b5e40ba34b83dc15d6f1d951 Mon Sep 17 00:00:00 2001 From: Philipp Arras Date: Fri, 26 Jul 2024 17:33:51 +0200 Subject: [PATCH 2/2] python3Packages.wat: init at 0.1.2 --- .../python-modules/wat/default.nix | 38 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 40 insertions(+) create mode 100644 pkgs/development/python-modules/wat/default.nix 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 745e9a234b3c..e46d97c5d3f2 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -17185,6 +17185,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; };