Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pytestCheckHook, 6 pythonOlder, 7 8 html5lib, 9 jsonschema, 10 pytest-cov, 11 pytest-mock, 12 pytest-recording, 13 python-dateutil, 14 requests-mock, 15 setuptools, 16}: 17 18buildPythonPackage rec { 19 pname = "pystac"; 20 version = "1.10.1"; 21 pyproject = true; 22 disabled = pythonOlder "3.9"; 23 24 src = fetchFromGitHub { 25 owner = "stac-utils"; 26 repo = "pystac"; 27 rev = "v${version}"; 28 hash = "sha256-zJGDhKRX50Muo1YDEzfwypMLISnYBYKkPvUULYkUf68="; 29 }; 30 31 build-system = [ setuptools ]; 32 33 propagatedBuildInputs = [ python-dateutil ]; 34 35 nativeCheckInputs = [ 36 html5lib 37 jsonschema 38 pytestCheckHook 39 pytest-cov 40 pytest-mock 41 pytest-recording 42 requests-mock 43 ]; 44 45 pythonImportsCheck = [ "pystac" ]; 46 47 meta = { 48 description = "Python library for working with any SpatioTemporal Asset Catalog (STAC)"; 49 homepage = "https://github.com/stac-utils/pystac"; 50 license = lib.licenses.asl20; 51 maintainers = lib.teams.geospatial.members; 52 }; 53}