a0cb138ada
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
51 lines
932 B
Nix
51 lines
932 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, numpy
|
|
, scipy
|
|
, matplotlib
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "regional";
|
|
version = "1.1.2";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "freeman-lab";
|
|
repo = pname;
|
|
rev = "e3a29c58982e5cd3d5700131ac96e5e0b84fb981"; # no tags in repo
|
|
hash = "sha256-u88v9H9RZ9cgtSat73QEnHr3gZGL8DmBZ0XphMuoDw8=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
matplotlib
|
|
numpy
|
|
scipy
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"regional"
|
|
];
|
|
|
|
disabledTests = [
|
|
"test_dilate"
|
|
"test_outline"
|
|
"test_mask"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Simple manipualtion and display of spatial regions";
|
|
homepage = "https://github.com/freeman-lab/regional";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ costrouc ];
|
|
};
|
|
}
|