Commit 74fa42ae authored by Augustin Trancart's avatar Augustin Trancart
Browse files

python3Packages.obspec: init at 0.1.0

parent 4def14e4
Loading
Loading
Loading
Loading
+53 −0
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  pytestCheckHook,

  # build system
  hatchling,

  # dependencies
  typing-extensions,

  # test dependencies
  pytest,
  pytest-mypy-plugins,
  mypy,
}:
buildPythonPackage (finalAttrs: {
  pname = "obspec";
  version = "0.1.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "developmentseed";
    repo = "obspec";
    tag = "v${finalAttrs.version}";
    hash = "sha256-zO2T189WUl1HJkBLrGpArS5NoFNpEchWfjJQJEME5W8=";
  };

  build-system = [ hatchling ];

  dependencies = [
    typing-extensions
  ];

  pythonImportsCheck = [ "obspec" ];

  nativeCheckInputs = [
    pytestCheckHook
    mypy
  ];

  checkInputs = [
    pytest-mypy-plugins
  ];

  meta = {
    description = "Object storage interface definitions for Python";
    homepage = "http://developmentseed.org/obspec/";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ autra ];
  };
})
+2 −0
Original line number Diff line number Diff line
@@ -11319,6 +11319,8 @@ self: super: with self; {
  obsidian-media = callPackage ../development/python-modules/obsidian-media { };
  obspec = callPackage ../development/python-modules/obspec { };
  obspy = callPackage ../development/python-modules/obspy { };
  obstore = callPackage ../development/python-modules/obstore { };