1 { lib, buildPythonPackage, fetchFromGitHub, pdfminer-six, chardet, pytestCheckHook }:
3 buildPythonPackage rec {
7 src = fetchFromGitHub {
11 hash = "sha256-POpP6XwcqwvImrtIiDjpnHoNE0MKapuPjxojo+ocBK0=";
15 substituteInPlace requirements.txt \
16 --replace "chardet==4.0.0" "chardet" \
17 --replace "pdfminer.six==20201018" "pdfminer.six"
20 propagatedBuildInputs = [ pdfminer-six chardet ];
22 nativeCheckInputs = [ pytestCheckHook ];
25 inherit (src.meta) homepage;
26 description = "Extract references (pdf, url, doi, arxiv) and metadata from a PDF";
27 license = licenses.asl20;
28 maintainers = with maintainers; [ marsam ];