Commit b96dd669 authored by Zhaofeng Li's avatar Zhaofeng Li
Browse files

cdxj-indexer: init at 1.4.6

parent 728e634a
Loading
Loading
Loading
Loading
+57 −0
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
  warcio,
  surt,
  py3amf,
  multipart,
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "cdxj-indexer";
  version = "1.4.6";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "webrecorder";
    repo = "cdxj-indexer";
    tag = "v${version}";
    hash = "sha256-E3b/IfjngyXhWvRYP9CkQGvBFeC8pAm4KxZA9MwOo4s=";
  };

  build-system = [
    setuptools
  ];

  dependencies = [
    warcio
    surt
    py3amf
    multipart
  ];

  pythonRemoveDeps = [
    # Transitive dependency that does not need to be pinned
    # Proposed fix in <https://github.com/webrecorder/cdxj-indexer/pull/25>
    "idna"
  ];

  nativeCheckInputs = [
    pytestCheckHook
  ];

  pythonImportsCheck = [
    "cdxj_indexer"
  ];

  meta = {
    description = "CDXJ Indexing of WARC/ARCs";
    homepage = "https://github.com/webrecorder/cdxj-indexer";
    license = lib.licenses.asl20;
    maintainers = with lib.maintainers; [ zhaofengli ];
    mainProgram = "cdxj-indexer";
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -11949,6 +11949,8 @@ with pkgs;

  cdparanoia = cdparanoiaIII;

  cdxj-indexer = with python3Packages; toPythonApplication cdxj-indexer;

  chromium = callPackage ../applications/networking/browsers/chromium (config.chromium or { });

  chuck = callPackage ../applications/audio/chuck {
+2 −0
Original line number Diff line number Diff line
@@ -2332,6 +2332,8 @@ self: super: with self; {
  cddlparser = callPackage ../development/python-modules/cddlparser { };
  cdxj-indexer = callPackage ../development/python-modules/cdxj-indexer { };
  celery = callPackage ../development/python-modules/celery { };
  celery-batches = callPackage ../development/python-modules/celery-batches { };