default.nix (810B)
1 { lib, stdenv, fetchFromGitHub, python3Packages, pystac }: 2 3 python3Packages.buildPythonPackage rec { 4 pname = "rio-stac"; 5 version = "0.8.1"; 6 pyproject = true; 7 8 src = fetchFromGitHub { 9 owner = "developmentseed"; 10 repo = "rio-stac"; 11 rev = version; 12 hash = "sha256-3qFG8d4pz41a9jez69ka7gdix5lCbHJZcTs733CiBs4="; 13 }; 14 15 nativeBuildInputs = with python3Packages; [ flit ]; 16 17 propagatedBuildInputs = with python3Packages; [ 18 rasterio 19 pystac 20 ]; 21 22 nativeCheckInputs = with python3Packages; [ pytestCheckHook jsonschema ]; 23 24 disabledTests = [ 25 "test_create_item" 26 ]; 27 28 meta = with lib; { 29 description = "Create STAC item from raster datasets"; 30 homepage = "https://developmentseed.org/rio-stac/"; 31 license = licenses.mit; 32 maintainers = [ maintainers.sikmir ]; 33 }; 34 }