mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-10 07:13:38 +00:00
55 lines
1001 B
Nix
55 lines
1001 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
cython,
|
|
numpy,
|
|
pbr,
|
|
setuptools,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "fastremap";
|
|
version = "1.19.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "seung-lab";
|
|
repo = "fastremap";
|
|
tag = version;
|
|
hash = "sha256-fPDgCpCJrMomxr0dicM9NBqzH4s+/Ux37hTsnsGts2g=";
|
|
};
|
|
|
|
build-system = [
|
|
cython
|
|
numpy
|
|
pbr
|
|
setuptools
|
|
];
|
|
|
|
dependencies = [
|
|
numpy
|
|
];
|
|
|
|
env.PBR_VERSION = version;
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
preCheck = "rm -r fastremap/";
|
|
|
|
pythonImportsCheck = [
|
|
"fastremap"
|
|
];
|
|
|
|
meta = {
|
|
description = "Remap, mask, renumber, unique, and in-place transposition of 3D labeled images and point clouds";
|
|
homepage = "https://github.com/seung-lab/fastremap";
|
|
changelog = "https://github.com/seung-lab/fastremap/releases/tag/${src.tag}";
|
|
license = lib.licenses.lgpl3Only;
|
|
maintainers = with lib.maintainers; [ bcdarwin ];
|
|
};
|
|
}
|