nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 86 lines 1.8 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pytestCheckHook, 6 7 beautifulsoup4, 8 fiona, 9 geodatasets, 10 geopandas, 11 numpy, 12 packaging, 13 pandas, 14 platformdirs, 15 requests, 16 scikit-learn, 17 scipy, 18 setuptools-scm, 19 shapely, 20}: 21 22buildPythonPackage rec { 23 pname = "libpysal"; 24 version = "4.14.1"; 25 pyproject = true; 26 27 src = fetchFromGitHub { 28 owner = "pysal"; 29 repo = "libpysal"; 30 tag = "v${version}"; 31 hash = "sha256-epwviJtQ97MxUA4Gpw6SJceCdBPFXnZBF13A1HiJcOo="; 32 }; 33 34 build-system = [ setuptools-scm ]; 35 36 dependencies = [ 37 beautifulsoup4 38 fiona 39 geopandas 40 numpy 41 packaging 42 pandas 43 platformdirs 44 requests 45 scikit-learn 46 scipy 47 shapely 48 ]; 49 50 nativeCheckInputs = [ 51 geodatasets 52 pytestCheckHook 53 ]; 54 55 preCheck = '' 56 export HOME=$TMPDIR 57 ''; 58 59 # requires network access 60 disabledTestPaths = [ 61 "libpysal/graph/tests/test_summary.py" 62 "libpysal/cg/tests/test_geoJSON.py" 63 "libpysal/examples/tests/test_available.py" 64 "libpysal/graph/tests/test_base.py" 65 "libpysal/graph/tests/test_builders.py" 66 "libpysal/graph/tests/test_contiguity.py" 67 "libpysal/graph/tests/test_kernel.py" 68 "libpysal/graph/tests/test_matching.py" 69 "libpysal/graph/tests/test_plotting.py" 70 "libpysal/graph/tests/test_triangulation.py" 71 "libpysal/graph/tests/test_utils.py" 72 "libpysal/graph/tests/test_set_ops.py" 73 "libpysal/weights/tests/test_contiguity.py" 74 "libpysal/weights/tests/test_util.py" 75 ]; 76 77 pythonImportsCheck = [ "libpysal" ]; 78 79 meta = { 80 description = "Library of spatial analysis functions"; 81 homepage = "https://pysal.org/libpysal/"; 82 changelog = "https://github.com/pysal/libpysal/releases/tag/${src.tag}"; 83 license = lib.licenses.bsd3; 84 teams = [ lib.teams.geospatial ]; 85 }; 86}