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