blob: 478cb259250bce1d085afae57cff5f8db99e8900 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
numpy,
poetry-core,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "vg";
version = "2.0.0";
pyproject = true;
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 ];
};
}
|