depot/third_party/nixpkgs/pkgs/development/python-modules/spatialmath-python/default.nix
Default email 472aeafc57 Project import generated by Copybara.
GitOrigin-RevId: c31898adf5a8ed202ce5bea9f347b1c6871f32d1
2024-10-04 18:56:33 +02:00

74 lines
1.2 KiB
Nix

{
lib,
buildPythonPackage,
fetchPypi,
pythonOlder,
oldest-supported-numpy,
setuptools,
ansitable,
matplotlib,
numpy,
scipy,
typing-extensions,
coverage,
flake8,
pytest,
pytest-timeout,
pytest-xvfb,
sympy,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "spatialmath-python";
version = "1.1.10";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
pname = "spatialmath_python";
inherit version;
hash = "sha256-7h29RHCrxdexpabtxMQx/7RahQmCDGHhdJ1WETvtfYg=";
};
nativeBuildInputs = [
oldest-supported-numpy
setuptools
];
pythonRemoveDeps = [ "pre-commit" ];
propagatedBuildInputs = [
ansitable
matplotlib
numpy
scipy
typing-extensions
];
optional-dependencies = {
dev = [
coverage
flake8
pytest
pytest-timeout
pytest-xvfb
sympy
];
};
pythonImportsCheck = [ "spatialmath" ];
nativeCheckInputs = [ pytestCheckHook ];
meta = with lib; {
description = "Provides spatial maths capability for Python";
homepage = "https://pypi.org/project/spatialmath-python/";
license = licenses.mit;
maintainers = with maintainers; [
djacu
a-camarillo
];
};
}