depot/third_party/nixpkgs/pkgs/development/python-modules/clifford/default.nix
Default email 1693fb2285 Project import generated by Copybara.
GitOrigin-RevId: 420f89ceb267b461eed5d025b6c3c0e57703cc5c
2020-10-07 11:15:18 +02:00

61 lines
1 KiB
Nix

{ lib
, buildPythonPackage
, fetchPypi
, isPy27
, future
, h5py
, ipython
, numba
, numpy
, pytestCheckHook
, scipy
, sparse
}:
buildPythonPackage rec {
pname = "clifford";
version = "1.3.1";
disabled = isPy27;
src = fetchPypi {
inherit pname version;
sha256 = "ade11b20d0631dfc9c2f18ce0149f1e61e4baf114108b27cfd68e5c1619ecc0c";
};
propagatedBuildInputs = [
future
h5py
numba
numpy
scipy
sparse
];
checkInputs = [
pytestCheckHook
ipython
];
postPatch = ''
substituteInPlace setup.py \
--replace "'numba==0.43'" "'numba'"
'';
# avoid collecting local files
preCheck = ''
cd clifford/test
'';
pytestFlagsArray = [
"-m \"not veryslow\""
"--ignore=test_algebra_initialisation.py" # fails without JIT
"--ignore=test_cga.py"
];
meta = with lib; {
description = "Numerical Geometric Algebra Module";
homepage = "https://clifford.readthedocs.io";
license = licenses.bsd3;
maintainers = [ maintainers.costrouc ];
};
}