From 71ea77b4b011e1912a929baa47a026d8236bb8be Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 23 May 2024 02:28:24 +0200 Subject: [PATCH] python312Packages.ecos: 2.0.11 -> 2.0.13 Diff: embotech/ecos-python@refs/tags/v2.0.11...v2.0.13 Changelog: https://github.com/embotech/ecos-python/releases/tag/v2.0.13 --- .../python-modules/ecos/default.nix | 27 +++++++++---------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/pkgs/development/python-modules/ecos/default.nix b/pkgs/development/python-modules/ecos/default.nix index defeaeb95cb6..6daec8eb775d 100644 --- a/pkgs/development/python-modules/ecos/default.nix +++ b/pkgs/development/python-modules/ecos/default.nix @@ -2,44 +2,43 @@ lib, buildPythonPackage, fetchFromGitHub, - nose, - numpy, + oldest-supported-numpy, + pytestCheckHook, pythonOlder, scipy, + setuptools, }: buildPythonPackage rec { pname = "ecos"; - version = "2.0.11"; - format = "setuptools"; + version = "2.0.13"; + pyproject = true; - disabled = pythonOlder "3.6"; + disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "embotech"; repo = "ecos-python"; rev = "refs/tags/v${version}"; - hash = "sha256-jflmXR7fuGRSyI6NoQrHFvkKqF/D4iq47StNSCdLbqQ="; + hash = "sha256-3NcZBZ7fnwiMelGssa74b5PgmXmNZhP4etNRpyrCkpo="; fetchSubmodules = true; }; - propagatedBuildInputs = [ - numpy + build-system = [ setuptools ]; + + dependencies = [ + oldest-supported-numpy scipy ]; - nativeCheckInputs = [ nose ]; - - checkPhase = '' - cd ./src - nosetests test_interface.py test_interface_bb.py - ''; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "ecos" ]; meta = with lib; { description = "Python interface for ECOS"; homepage = "https://github.com/embotech/ecos-python"; + changelog = "https://github.com/embotech/ecos-python/releases/tag/v${version}"; license = licenses.gpl3Only; maintainers = with maintainers; [ drewrisinger ]; };