diff options
Diffstat (limited to 'pkgs/development/python-modules/pystac/default.nix')
-rw-r--r-- | pkgs/development/python-modules/pystac/default.nix | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/pystac/default.nix b/pkgs/development/python-modules/pystac/default.nix new file mode 100644 index 000000000000..3f118b581a5c --- /dev/null +++ b/pkgs/development/python-modules/pystac/default.nix @@ -0,0 +1,53 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, + + html5lib, + jsonschema, + pytest-cov-stub, + pytest-mock, + pytest-recording, + python-dateutil, + requests-mock, + setuptools, +}: + +buildPythonPackage rec { + pname = "pystac"; + version = "1.11.0"; + pyproject = true; + disabled = pythonOlder "3.9"; + + src = fetchFromGitHub { + owner = "stac-utils"; + repo = "pystac"; + rev = "refs/tags/v${version}"; + hash = "sha256-yuAam/sXaGMFp1Kwxd28v3nOV05GC3sUY+gKJ4nLwTs="; + }; + + build-system = [ setuptools ]; + + propagatedBuildInputs = [ python-dateutil ]; + + nativeCheckInputs = [ + html5lib + jsonschema + pytestCheckHook + pytest-cov-stub + pytest-mock + pytest-recording + requests-mock + ]; + + pythonImportsCheck = [ "pystac" ]; + + meta = { + description = "Python library for working with any SpatioTemporal Asset Catalog (STAC)"; + homepage = "https://github.com/stac-utils/pystac"; + license = lib.licenses.asl20; + maintainers = lib.teams.geospatial.members; + }; +} |