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