1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 warcio, 7 surt, 8 py3amf, 9 multipart, 10 pytestCheckHook, 11}: 12 13buildPythonPackage rec { 14 pname = "cdxj-indexer"; 15 version = "1.4.6"; 16 pyproject = true; 17 18 src = fetchFromGitHub { 19 owner = "webrecorder"; 20 repo = "cdxj-indexer"; 21 tag = "v${version}"; 22 hash = "sha256-E3b/IfjngyXhWvRYP9CkQGvBFeC8pAm4KxZA9MwOo4s="; 23 }; 24 25 build-system = [ 26 setuptools 27 ]; 28 29 dependencies = [ 30 warcio 31 surt 32 py3amf 33 multipart 34 ]; 35 36 pythonRemoveDeps = [ 37 # Transitive dependency that does not need to be pinned 38 # Proposed fix in <https://github.com/webrecorder/cdxj-indexer/pull/25> 39 "idna" 40 ]; 41 42 nativeCheckInputs = [ 43 pytestCheckHook 44 ]; 45 46 pythonImportsCheck = [ 47 "cdxj_indexer" 48 ]; 49 50 meta = { 51 description = "CDXJ Indexing of WARC/ARCs"; 52 homepage = "https://github.com/webrecorder/cdxj-indexer"; 53 license = lib.licenses.asl20; 54 maintainers = with lib.maintainers; [ zhaofengli ]; 55 mainProgram = "cdxj-indexer"; 56 }; 57}