From 8a4eb39f1e60281ca5c9c71abb8f72e8a3dc6d0a Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Wed, 22 Jun 2022 16:16:13 +0000 Subject: [PATCH 1/2] python310Packages.iminuit: 2.11.2 -> 2.12.0 --- pkgs/development/python-modules/iminuit/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/iminuit/default.nix b/pkgs/development/python-modules/iminuit/default.nix index 37703a3150f4..77c2b8603a70 100644 --- a/pkgs/development/python-modules/iminuit/default.nix +++ b/pkgs/development/python-modules/iminuit/default.nix @@ -2,12 +2,12 @@ buildPythonPackage rec { pname = "iminuit"; - version = "2.11.2"; + version = "2.12.0"; disabled = !isPy3k; src = fetchPypi { inherit pname version; - sha256 = "sha256-jK55F8otIsaR4AeSv7u4ErhKxcdRIOsq6Hn7StpB7mw="; + sha256 = "sha256-zQ48t1EwLAZphOqzBhLF0kGaVDF/6+UbUL4fohr8Uak="; }; nativeBuildInputs = [ cmake ]; From e0614c01d8e9b61883395ac79114f9494c5de611 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 22 Jun 2022 19:16:36 +0200 Subject: [PATCH 2/2] python310Packages.iminuit: disable on older Python releases --- .../python-modules/iminuit/default.nix | 28 +++++++++++++++---- 1 file changed, 22 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/iminuit/default.nix b/pkgs/development/python-modules/iminuit/default.nix index 77c2b8603a70..7b45a8cac65c 100644 --- a/pkgs/development/python-modules/iminuit/default.nix +++ b/pkgs/development/python-modules/iminuit/default.nix @@ -1,21 +1,37 @@ -{ lib, buildPythonPackage, isPy3k, fetchPypi, cmake, numpy, pytestCheckHook }: +{ lib +, buildPythonPackage +, fetchPypi +, cmake +, numpy +, pytestCheckHook +, pythonOlder +}: buildPythonPackage rec { pname = "iminuit"; version = "2.12.0"; - disabled = !isPy3k; + format = "setuptools"; + + disabled = pythonOlder "3.6"; src = fetchPypi { inherit pname version; - sha256 = "sha256-zQ48t1EwLAZphOqzBhLF0kGaVDF/6+UbUL4fohr8Uak="; + hash = "sha256-zQ48t1EwLAZphOqzBhLF0kGaVDF/6+UbUL4fohr8Uak="; }; - nativeBuildInputs = [ cmake ]; - propagatedBuildInputs = [ numpy ]; + nativeBuildInputs = [ + cmake + ]; + + propagatedBuildInputs = [ + numpy + ]; dontUseCmakeConfigure = true; - checkInputs = [ pytestCheckHook ]; + checkInputs = [ + pytestCheckHook + ]; meta = with lib; { homepage = "https://github.com/scikit-hep/iminuit";