1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 numpy, 6 poetry-core, 7 pythonOlder, 8 pytestCheckHook, 9}: 10 11buildPythonPackage rec { 12 pname = "vg"; 13 version = "2.0.0"; 14 pyproject = true; 15 16 disabled = pythonOlder "3.7"; 17 18 src = fetchFromGitHub { 19 owner = "lace"; 20 repo = "vg"; 21 tag = version; 22 hash = "sha256-ZNUAfkhjmsxD8cH0fR8Htjs+/F/3R9xfe1XgRyndids="; 23 }; 24 25 postPatch = '' 26 substituteInPlace pyproject.toml \ 27 --replace 'requires = ["setuptools", "poetry-core>=1.0.0"]' 'requires = ["poetry-core>=1.0.0"]' 28 ''; 29 30 build-system = [ poetry-core ]; 31 32 dependencies = [ numpy ]; 33 34 nativeCheckInputs = [ pytestCheckHook ]; 35 36 disabledTests = [ "test_basic" ]; 37 38 pythonImportsCheck = [ "vg" ]; 39 40 meta = { 41 description = "Linear algebra for humans: a very good vector-geometry and linear-algebra toolbelt"; 42 homepage = "https://github.com/lace/vg"; 43 changelog = "https://github.com/lace/vg/blob/${version}/CHANGELOG.md"; 44 license = [ lib.licenses.bsd2 ]; 45 maintainers = with lib.maintainers; [ clerie ]; 46 }; 47}