1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, numpy 5, scipy 6, matplotlib 7, pytestCheckHook 8, pythonOlder 9}: 10 11buildPythonPackage rec { 12 pname = "regional"; 13 version = "1.1.2"; 14 format = "setuptools"; 15 16 disabled = pythonOlder "3.7"; 17 18 src = fetchFromGitHub { 19 owner = "freeman-lab"; 20 repo = pname; 21 rev = "e3a29c58982e5cd3d5700131ac96e5e0b84fb981"; # no tags in repo 22 hash = "sha256-u88v9H9RZ9cgtSat73QEnHr3gZGL8DmBZ0XphMuoDw8="; 23 }; 24 25 propagatedBuildInputs = [ 26 matplotlib 27 numpy 28 scipy 29 ]; 30 31 nativeCheckInputs = [ 32 pytestCheckHook 33 ]; 34 35 pythonImportsCheck = [ 36 "regional" 37 ]; 38 39 disabledTests = [ 40 "test_dilate" 41 "test_outline" 42 "test_mask" 43 ]; 44 45 meta = with lib; { 46 description = "Simple manipualtion and display of spatial regions"; 47 homepage = "https://github.com/freeman-lab/regional"; 48 license = licenses.mit; 49 maintainers = with maintainers; [ ]; 50 }; 51}