1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pytestCheckHook, 6 pythonOlder, 7 8 libpysal, 9 mapclassify, 10 matplotlib, 11 numpy, 12 scipy, 13 seaborn, 14 setuptools-scm, 15}: 16 17buildPythonPackage rec { 18 pname = "inequality"; 19 version = "1.1.2"; 20 pyproject = true; 21 disabled = pythonOlder "3.11"; 22 23 src = fetchFromGitHub { 24 owner = "pysal"; 25 repo = "inequality"; 26 tag = "v${version}"; 27 hash = "sha256-GMl/hHwaHPozdLhV9/CPYIMY5lFYeo0X0SPDg4RT1zo="; 28 }; 29 30 build-system = [ setuptools-scm ]; 31 32 dependencies = [ 33 libpysal 34 matplotlib 35 numpy 36 scipy 37 ]; 38 39 nativeCheckInputs = [ 40 mapclassify 41 pytestCheckHook 42 seaborn 43 ]; 44 45 pythonImportsCheck = [ "inequality" ]; 46 47 meta = { 48 description = "Spatial inequality analysis"; 49 homepage = "https://github.com/pysal/inequality"; 50 license = lib.licenses.bsd3; 51 teams = [ lib.teams.geospatial ]; 52 }; 53}