Files
nixpkgs/pkgs/development/python-modules/clifford/default.nix
T
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

74 lines
1.3 KiB
Nix

{
lib,
buildPythonPackage,
fetchPypi,
h5py,
ipython,
numba,
numpy,
pytestCheckHook,
setuptools,
scipy,
sparse,
}:
buildPythonPackage rec {
pname = "clifford";
version = "1.4.0";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-eVE8FrD0YHoRreY9CrNb8v4v4KrG83ZU0oFz+V+p+Q0=";
};
build-system = [ setuptools ];
dependencies = [
h5py
numba
numpy
scipy
sparse
];
nativeCheckInputs = [
pytestCheckHook
ipython
];
# avoid collecting local files
preCheck = ''
cd clifford/test
'';
disabledTests = [
"veryslow"
"test_algebra_initialisation"
"test_cga"
"test_grade_projection"
"test_multiple_grade_projection"
"test_inverse"
"test_inv_g4"
];
disabledTestPaths = [
# Disable failing tests
"test_g3c_tools.py"
"test_multivector_inverse.py"
];
pythonImportsCheck = [ "clifford" ];
meta = {
description = "Numerical Geometric Algebra Module";
homepage = "https://clifford.readthedocs.io";
changelog = "https://github.com/pygae/clifford/releases/tag/v${version}";
license = lib.licenses.bsd3;
maintainers = [ ];
# Broken with numba >= 0.54
# see https://github.com/pygae/clifford/issues/430
broken = lib.versionAtLeast numba.version "0.58";
};
}