default.nix (742B)
1 { lib, stdenv, fetchFromGitHub, python3Packages }: 2 3 python3Packages.buildPythonPackage rec { 4 pname = "pystac"; 5 version = "1.4.0"; 6 7 src = fetchFromGitHub { 8 owner = "stac-utils"; 9 repo = "pystac"; 10 rev = "v${version}"; 11 hash = "sha256-khhiCUNiaxC744J+fZiJOXruNILOXvAwe3UNygr2M8U="; 12 }; 13 14 propagatedBuildInputs = with python3Packages; [ 15 python-dateutil 16 ]; 17 18 doCheck = false; 19 20 nativeCheckInputs = with python3Packages; [ jsonschema pytestCheckHook ]; 21 22 pythonImportsCheck = [ "pystac" ]; 23 24 meta = with lib; { 25 description = "Python library for working with any SpatioTemporal Asset Catalog (STAC)"; 26 inherit (src.meta) homepage; 27 license = licenses.asl20; 28 maintainers = [ maintainers.sikmir ]; 29 }; 30 }