nixpkgs/pkgs/development/python-modules/spatialmath-python/default.nix
Robert Schütz 1a04744f74 treewide: remove superfluous disabled
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:

    pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
    for f in $(find -name '*.nix'); do
        grep -q "$pattern" "$f" || continue
        sed -i "/$pattern/d" "$f"
        if [ $(grep -c pythonOlder "$f") == 1 ]; then
            sed -i '/^\s*pythonOlder,\s*$/d' "$f"
        fi
        nixfmt "$f"
    done
2026-01-11 09:34:20 -08:00

64 lines
1.1 KiB
Nix

{
lib,
stdenv,
buildPythonPackage,
fetchPypi,
oldest-supported-numpy,
setuptools,
ansitable,
matplotlib,
numpy,
scipy,
typing-extensions,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "spatialmath-python";
version = "1.1.15";
pyproject = true;
src = fetchPypi {
pname = "spatialmath_python";
inherit version;
hash = "sha256-yrcPLNN15hB4WMkB8TSNWU9QnV8sEh8EL9HNQrrXPd8=";
};
build-system = [
oldest-supported-numpy
setuptools
];
pythonRemoveDeps = [ "pre-commit" ];
pythonRelaxDeps = [ "matplotlib" ];
dependencies = [
ansitable
matplotlib
numpy
scipy
typing-extensions
];
pythonImportsCheck = [ "spatialmath" ];
nativeCheckInputs = [ pytestCheckHook ];
disabledTestPaths = [
# tests hang
"tests/test_spline.py"
];
env.MPLBACKEND = lib.optionalString stdenv.hostPlatform.isDarwin "Agg";
meta = {
description = "Provides spatial maths capability for Python";
homepage = "https://pypi.org/project/spatialmath-python/";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [
djacu
a-camarillo
];
};
}