Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 41 lines 863 B view raw
1{ 2 lib, 3 fetchFromGitHub, 4 python3Packages, 5}: 6 7python3Packages.buildPythonPackage rec { 8 pname = "stac-validator"; 9 version = "3.10.1"; 10 pyproject = true; 11 disabled = python3Packages.pythonOlder "3.8"; 12 13 src = fetchFromGitHub { 14 owner = "stac-utils"; 15 repo = "stac-validator"; 16 tag = "v${version}"; 17 hash = "sha256-tqguaptVRo6k6QALOOOL8dysMGDZx07eRJoHG24JirQ="; 18 }; 19 20 build-system = [ python3Packages.setuptools ]; 21 22 pythonRelaxDeps = [ 23 "click" 24 ]; 25 26 dependencies = with python3Packages; [ 27 click 28 jsonschema 29 pyyaml 30 requests 31 ]; 32 33 pythonImportsCheck = [ "stac_validator" ]; 34 35 meta = { 36 description = "Validator for the SpatioTemporal Asset Catalog (STAC) specification"; 37 homepage = "https://github.com/stac-utils/stac-validator"; 38 license = lib.licenses.asl20; 39 teams = [ lib.teams.geospatial ]; 40 }; 41}