Files
nixpkgs/pkgs/development/python-modules/spatialmath-python/default.nix
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

68 lines
1.2 KiB
Nix

{
lib,
stdenv,
buildPythonPackage,
fetchPypi,
pythonOlder,
oldest-supported-numpy,
setuptools,
ansitable,
matplotlib,
numpy,
scipy,
typing-extensions,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "spatialmath-python";
version = "1.1.15";
pyproject = true;
disabled = pythonOlder "3.7";
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
];
};
}