nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 56 lines 1.2 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pytestCheckHook, 6 pandas, 7 pyarrow, 8 geoarrow-pyarrow, 9 geoarrow-types, 10 setuptools-scm, 11}: 12buildPythonPackage rec { 13 pname = "geoarrow-pandas"; 14 version = "0.3.0"; 15 pyproject = true; 16 17 src = fetchFromGitHub { 18 repo = "geoarrow-python"; 19 owner = "geoarrow"; 20 tag = "geoarrow-types-${version}"; 21 hash = "sha256-ciElwh94ukFyFdOBuQWyOUVpn4jBM1RKfxiBCcM+nmE="; 22 }; 23 24 sourceRoot = "${src.name}/geoarrow-pandas"; 25 26 build-system = [ setuptools-scm ]; 27 28 env.SETUPTOOLS_SCM_PRETEND_VERSION = version; 29 30 dependencies = [ 31 geoarrow-pyarrow 32 geoarrow-types 33 pandas 34 pyarrow 35 ]; 36 37 nativeCheckInputs = [ 38 pytestCheckHook 39 ]; 40 41 pythonImportsCheck = [ "geoarrow.pandas" ]; 42 43 meta = { 44 description = "Python implementation of the GeoArrow specification"; 45 homepage = "https://github.com/geoarrow/geoarrow-python"; 46 license = lib.licenses.asl20; 47 maintainers = with lib.maintainers; [ 48 cpcloud 49 ]; 50 teams = [ lib.teams.geospatial ]; 51 # its removal upstream is in question 52 # https://github.com/geoarrow/geoarrow-python/issues/75 53 # please unbreak it if the author decides to release a new version 54 broken = true; 55 }; 56}