python312Packages.ansitable: 0.11.2 -> 0.11.3; fix build (#352659)

This commit is contained in:
OTABI Tomoya 2024-11-03 01:56:01 +09:00 committed by GitHub
commit dd1856cf62
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 20 additions and 25 deletions

View File

@ -7,29 +7,31 @@
colored, colored,
pytestCheckHook, pytestCheckHook,
numpy, numpy,
pandas,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "ansitable"; pname = "ansitable";
version = "0.11.2"; version = "0.11.3";
pyproject = true; pyproject = true;
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
hash = "sha256-MQ6VLjFDt/dEHDK8PbQsBdfzogJCm+pzyVYDbqkDOao="; hash = "sha256-navayezkSSHgwOysC3fbgTQahRZjIV24JzIAQl+X5Jk=";
}; };
nativeBuildInputs = [ setuptools ]; build-system = [ setuptools ];
propagatedBuildInputs = [ colored ]; dependencies = [ colored ];
pythonImportsCheck = [ "ansitable" ]; pythonImportsCheck = [ "ansitable" ];
nativeCheckInputs = [ nativeCheckInputs = [
pytestCheckHook pytestCheckHook
numpy numpy
pandas
]; ];
meta = with lib; { meta = with lib; {

View File

@ -1,5 +1,6 @@
{ {
lib, lib,
stdenv,
buildPythonPackage, buildPythonPackage,
fetchPypi, fetchPypi,
pythonOlder, pythonOlder,
@ -10,18 +11,12 @@
numpy, numpy,
scipy, scipy,
typing-extensions, typing-extensions,
coverage,
flake8,
pytest,
pytest-timeout,
pytest-xvfb,
sympy,
pytestCheckHook, pytestCheckHook,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "spatialmath-python"; pname = "spatialmath-python";
version = "1.1.11"; version = "1.1.13";
pyproject = true; pyproject = true;
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
@ -29,17 +24,19 @@ buildPythonPackage rec {
src = fetchPypi { src = fetchPypi {
pname = "spatialmath_python"; pname = "spatialmath_python";
inherit version; inherit version;
hash = "sha256-9EUlDGkpV/a73XWvrbtZLK8wrR8Am5EOkv3iSf9J4rM="; hash = "sha256-BhIB4VapnARkzyhps8xRWnQTAlRB8aVPDpNuN/FNezo=";
}; };
nativeBuildInputs = [ build-system = [
oldest-supported-numpy oldest-supported-numpy
setuptools setuptools
]; ];
pythonRemoveDeps = [ "pre-commit" ]; pythonRemoveDeps = [ "pre-commit" ];
propagatedBuildInputs = [ pythonRelaxDeps = [ "matplotlib" ];
dependencies = [
ansitable ansitable
matplotlib matplotlib
numpy numpy
@ -47,21 +44,17 @@ buildPythonPackage rec {
typing-extensions typing-extensions
]; ];
optional-dependencies = {
dev = [
coverage
flake8
pytest
pytest-timeout
pytest-xvfb
sympy
];
};
pythonImportsCheck = [ "spatialmath" ]; pythonImportsCheck = [ "spatialmath" ];
nativeCheckInputs = [ pytestCheckHook ]; nativeCheckInputs = [ pytestCheckHook ];
disabledTestPaths = [
# tests hang
"tests/test_spline.py"
];
env.MPLBACKEND = lib.optionalString stdenv.hostPlatform.isDarwin "Agg";
meta = with lib; { meta = with lib; {
description = "Provides spatial maths capability for Python"; description = "Provides spatial maths capability for Python";
homepage = "https://pypi.org/project/spatialmath-python/"; homepage = "https://pypi.org/project/spatialmath-python/";