Loading pkgs/development/python-modules/rerun-sdk/default.nix 0 → 100644 +70 −0 Original line number Diff line number Diff line { buildPythonPackage, lib, rustPlatform, stdenv, attrs, numpy, pillow, pyarrow, rerun, torch, typing-extensions, pytestCheckHook, python, }: buildPythonPackage { pname = "rerun-sdk"; inherit (rerun) version; pyproject = true; inherit (rerun) src; inherit (rerun) cargoDeps; nativeBuildInputs = [ rustPlatform.cargoSetupHook rustPlatform.maturinBuildHook ]; propagatedBuildInputs = [ attrs numpy pillow pyarrow typing-extensions ]; buildAndTestSubdir = "rerun_py"; # https://github.com/NixOS/nixpkgs/issues/289340 # # Alternatively, one could # dontUsePythonImportsCheck = true; # dontUsePytestCheck = true; postInstall = '' rm $out/${python.sitePackages}/rerun_sdk.pth ln -s rerun_sdk/rerun $out/${python.sitePackages}/rerun ''; pythonImportsCheck = [ "rerun" ]; nativeCheckInputs = [ pytestCheckHook torch ]; inherit (rerun) addBuildInputRunpathsPhase; postPhases = lib.optionals stdenv.isLinux [ "addBuildInputRunpathsPhase" ]; disabledTestPaths = [ # "fixture 'benchmark' not found" "tests/python/log_benchmark/test_log_benchmark.py" ]; meta = { description = "Python bindings for `rerun` (an interactive visualization tool for stream data)"; inherit (rerun.meta) changelog homepage license maintainers; mainProgram = "rerun"; }; } pkgs/top-level/python-packages.nix +2 −0 Original line number Diff line number Diff line Loading @@ -12662,6 +12662,8 @@ self: super: with self; { reretry = callPackage ../development/python-modules/reretry { }; rerun-sdk = callPackage ../development/python-modules/rerun-sdk { }; resampy = callPackage ../development/python-modules/resampy { }; resize-right = callPackage ../development/python-modules/resize-right { }; Loading Loading
pkgs/development/python-modules/rerun-sdk/default.nix 0 → 100644 +70 −0 Original line number Diff line number Diff line { buildPythonPackage, lib, rustPlatform, stdenv, attrs, numpy, pillow, pyarrow, rerun, torch, typing-extensions, pytestCheckHook, python, }: buildPythonPackage { pname = "rerun-sdk"; inherit (rerun) version; pyproject = true; inherit (rerun) src; inherit (rerun) cargoDeps; nativeBuildInputs = [ rustPlatform.cargoSetupHook rustPlatform.maturinBuildHook ]; propagatedBuildInputs = [ attrs numpy pillow pyarrow typing-extensions ]; buildAndTestSubdir = "rerun_py"; # https://github.com/NixOS/nixpkgs/issues/289340 # # Alternatively, one could # dontUsePythonImportsCheck = true; # dontUsePytestCheck = true; postInstall = '' rm $out/${python.sitePackages}/rerun_sdk.pth ln -s rerun_sdk/rerun $out/${python.sitePackages}/rerun ''; pythonImportsCheck = [ "rerun" ]; nativeCheckInputs = [ pytestCheckHook torch ]; inherit (rerun) addBuildInputRunpathsPhase; postPhases = lib.optionals stdenv.isLinux [ "addBuildInputRunpathsPhase" ]; disabledTestPaths = [ # "fixture 'benchmark' not found" "tests/python/log_benchmark/test_log_benchmark.py" ]; meta = { description = "Python bindings for `rerun` (an interactive visualization tool for stream data)"; inherit (rerun.meta) changelog homepage license maintainers; mainProgram = "rerun"; }; }
pkgs/top-level/python-packages.nix +2 −0 Original line number Diff line number Diff line Loading @@ -12662,6 +12662,8 @@ self: super: with self; { reretry = callPackage ../development/python-modules/reretry { }; rerun-sdk = callPackage ../development/python-modules/rerun-sdk { }; resampy = callPackage ../development/python-modules/resampy { }; resize-right = callPackage ../development/python-modules/resize-right { }; Loading