nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 fetchFromGitHub,
4 python3Packages,
5}:
6
7python3Packages.buildPythonPackage rec {
8 pname = "stac-validator";
9 version = "3.10.2";
10 pyproject = true;
11
12 src = fetchFromGitHub {
13 owner = "stac-utils";
14 repo = "stac-validator";
15 tag = "v${version}";
16 hash = "sha256-Csw7+/0VTZuZ7xBmdPAWBk8NMGXtjKfr15F3IkbCFZ8=";
17 };
18
19 build-system = [ python3Packages.setuptools ];
20
21 pythonRelaxDeps = [
22 "click"
23 ];
24
25 dependencies = with python3Packages; [
26 click
27 jsonschema
28 pyyaml
29 requests
30 ];
31
32 pythonImportsCheck = [ "stac_validator" ];
33
34 meta = {
35 description = "Validator for the SpatioTemporal Asset Catalog (STAC) specification";
36 homepage = "https://github.com/stac-utils/stac-validator";
37 license = lib.licenses.asl20;
38 teams = [ lib.teams.geospatial ];
39 };
40}