Unverified Commit 3de49c67 authored by natsukium's avatar natsukium
Browse files

python312Packages.spatialmath-python: 1.1.11 -> 1.1.13

parent da9da5f8
Loading
Loading
Loading
Loading
+14 −21
Original line number Diff line number Diff line
{
  lib,
  stdenv,
  buildPythonPackage,
  fetchPypi,
  pythonOlder,
@@ -10,18 +11,12 @@
  numpy,
  scipy,
  typing-extensions,
  coverage,
  flake8,
  pytest,
  pytest-timeout,
  pytest-xvfb,
  sympy,
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "spatialmath-python";
  version = "1.1.11";
  version = "1.1.13";
  pyproject = true;

  disabled = pythonOlder "3.7";
@@ -29,17 +24,19 @@ buildPythonPackage rec {
  src = fetchPypi {
    pname = "spatialmath_python";
    inherit version;
    hash = "sha256-9EUlDGkpV/a73XWvrbtZLK8wrR8Am5EOkv3iSf9J4rM=";
    hash = "sha256-BhIB4VapnARkzyhps8xRWnQTAlRB8aVPDpNuN/FNezo=";
  };

  nativeBuildInputs = [
  build-system = [
    oldest-supported-numpy
    setuptools
  ];

  pythonRemoveDeps = [ "pre-commit" ];

  propagatedBuildInputs = [
  pythonRelaxDeps = [ "matplotlib" ];

  dependencies = [
    ansitable
    matplotlib
    numpy
@@ -47,21 +44,17 @@ buildPythonPackage rec {
    typing-extensions
  ];

  optional-dependencies = {
    dev = [
      coverage
      flake8
      pytest
      pytest-timeout
      pytest-xvfb
      sympy
    ];
  };

  pythonImportsCheck = [ "spatialmath" ];

  nativeCheckInputs = [ pytestCheckHook ];

  disabledTestPaths = [
    # tests hang
    "tests/test_spline.py"
  ];

  env.MPLBACKEND = lib.optionalString stdenv.hostPlatform.isDarwin "Agg";

  meta = with lib; {
    description = "Provides spatial maths capability for Python";
    homepage = "https://pypi.org/project/spatialmath-python/";