From 855397a775c0211d419818f38923db6078fb6534 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment?= Date: Sat, 22 Mar 2025 21:34:04 +0100 Subject: [PATCH 1/2] python3Packages.motmetrics: 1.4.0-unstable-20240130 -> 1.4.0-unstable-2025-01-14 Updated to fix tests build as NumPy 2.0 removed `np.asfarray` in favor of `np.asarray --- pkgs/development/python-modules/motmetrics/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/motmetrics/default.nix b/pkgs/development/python-modules/motmetrics/default.nix index 235ab9fffb4b..e6b6fb35ef15 100644 --- a/pkgs/development/python-modules/motmetrics/default.nix +++ b/pkgs/development/python-modules/motmetrics/default.nix @@ -19,15 +19,15 @@ buildPythonPackage { pname = "motmetrics"; - version = "1.4.0-unstable-20240130"; + version = "1.4.0-unstable-2025-01-14"; pyproject = true; src = fetchFromGitHub { owner = "cheind"; repo = "py-motmetrics"; # latest release is not compatible with pandas 2.0 - rev = "7210fcce0be1b76c96a62f6fe4ddbc90d944eacb"; - hash = "sha256-7LKLHXWgW4QpivAgzvWl6qEG0auVvpiZ6bfDViCKsFY="; + rev = "c199b3e853d589af4b6a7d88f5bcc8b8802fc434"; + hash = "sha256-DJ82nioW3jdIVo1B623BE8bBhVa1oMzYIkhhit4Z4dg="; }; nativeBuildInputs = [ setuptools ]; From 11c708995f33fb231f1ef06cfa27f0ea679fa55d Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 23 Mar 2025 11:52:20 +0100 Subject: [PATCH 2/2] python313Packages.motmetrics: refactor - add changelog to meta --- .../development/python-modules/motmetrics/default.nix | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/motmetrics/default.nix b/pkgs/development/python-modules/motmetrics/default.nix index e6b6fb35ef15..166e80b73924 100644 --- a/pkgs/development/python-modules/motmetrics/default.nix +++ b/pkgs/development/python-modules/motmetrics/default.nix @@ -25,14 +25,14 @@ buildPythonPackage { src = fetchFromGitHub { owner = "cheind"; repo = "py-motmetrics"; - # latest release is not compatible with pandas 2.0 + # Latest release is not compatible with pandas 2.0 rev = "c199b3e853d589af4b6a7d88f5bcc8b8802fc434"; hash = "sha256-DJ82nioW3jdIVo1B623BE8bBhVa1oMzYIkhhit4Z4dg="; }; - nativeBuildInputs = [ setuptools ]; + build-system = [ setuptools ]; - propagatedBuildInputs = [ + dependencies = [ numpy pandas scipy @@ -44,11 +44,14 @@ buildPythonPackage { pytest-benchmark ]; + pytestFlagsArray = [ "--benchmark-disable" ]; + pythonImportsCheck = [ "motmetrics" ]; meta = with lib; { - description = "Bar_chart: Benchmark multiple object trackers (MOT) in Python"; + description = "Benchmark multiple object trackers (MOT) in Python"; homepage = "https://github.com/cheind/py-motmetrics"; + changelog = "https://github.com/cheind/py-motmetrics/releases/tag/${version}"; license = licenses.mit; maintainers = [ ]; };