default.nix (896B)
1 { lib, stdenv, fetchFromGitHub, python3Packages }: 2 3 python3Packages.buildPythonPackage rec { 4 pname = "pystac"; 5 version = "1.9.0"; 6 pyproject = true; 7 8 src = fetchFromGitHub { 9 owner = "stac-utils"; 10 repo = "pystac"; 11 rev = "v${version}"; 12 hash = "sha256-LbHeEA/F96nVejsNVMR/zrIgIyrBxHiinHcLzk68uA0="; 13 }; 14 15 nativeBuildInputs = with python3Packages; [ setuptools ]; 16 17 propagatedBuildInputs = with python3Packages; [ 18 python-dateutil 19 ]; 20 21 nativeCheckInputs = with python3Packages; [ 22 html5lib 23 jsonschema 24 pytestCheckHook 25 pytest-cov 26 pytest-mock 27 pytest-recording 28 requests-mock 29 ]; 30 31 pythonImportsCheck = [ "pystac" ]; 32 33 meta = with lib; { 34 description = "Python library for working with any SpatioTemporal Asset Catalog (STAC)"; 35 inherit (src.meta) homepage; 36 license = licenses.asl20; 37 maintainers = [ maintainers.sikmir ]; 38 }; 39 }