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