1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 cython, 6 numpy, 7 pbr, 8 setuptools, 9 pytestCheckHook, 10}: 11 12buildPythonPackage rec { 13 pname = "fastremap"; 14 version = "1.15.1"; 15 pyproject = true; 16 17 src = fetchFromGitHub { 18 owner = "seung-lab"; 19 repo = "fastremap"; 20 tag = version; 21 hash = "sha256-naDagGD0VNRjoJ1+gkgLm3QbrnE9hD85ULz91xAfKa4="; 22 }; 23 24 build-system = [ 25 cython 26 numpy 27 pbr 28 setuptools 29 ]; 30 31 dependencies = [ 32 numpy 33 ]; 34 35 env.PBR_VERSION = version; 36 37 nativeCheckInputs = [ 38 pytestCheckHook 39 ]; 40 41 pythonImportsCheck = [ 42 "fastremap" 43 ]; 44 45 meta = { 46 description = "Remap, mask, renumber, unique, and in-place transposition of 3D labeled images and point clouds"; 47 homepage = "https://github.com/seung-lab/fastremap"; 48 changelog = "https://github.com/seung-lab/fastremap/releases/tag/${version}"; 49 license = lib.licenses.lgpl3Only; 50 maintainers = with lib.maintainers; [ bcdarwin ]; 51 }; 52}