Files
nixpkgs/pkgs/development/python-modules/vg/default.nix
Anton Mosich bccf7dfa28 python3Packages.vg: disable failing test; modernize
The vg tests were broken somewhere in #371501. Specifically one test
that compared to floats failed due to them being 1E-17 apart.
2025-05-01 23:11:12 +02:00

48 lines
1.0 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
numpy,
poetry-core,
pythonOlder,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "vg";
version = "2.0.0";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "lace";
repo = "vg";
tag = version;
hash = "sha256-ZNUAfkhjmsxD8cH0fR8Htjs+/F/3R9xfe1XgRyndids=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace 'requires = ["setuptools", "poetry-core>=1.0.0"]' 'requires = ["poetry-core>=1.0.0"]'
'';
build-system = [ poetry-core ];
dependencies = [ numpy ];
nativeCheckInputs = [ pytestCheckHook ];
disabledTests = [ "test_basic" ];
pythonImportsCheck = [ "vg" ];
meta = {
description = "Linear algebra for humans: a very good vector-geometry and linear-algebra toolbelt";
homepage = "https://github.com/lace/vg";
changelog = "https://github.com/lace/vg/blob/${version}/CHANGELOG.md";
license = [ lib.licenses.bsd2 ];
maintainers = with lib.maintainers; [ clerie ];
};
}