Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
857 B · 43 lines
Nix
at litex
1234567891011121314151617181920212223242526272829303132333435363738394041424344{ lib, buildPythonPackage, fetchPypi, flit-core, pythonOlder, typing-extensions, unittestCheckHook}:
buildPythonPackage rec { pname = "PyPDF2"; version = "3.0.1";
format = "pyproject";
src = fetchPypi { inherit pname version; hash = "sha256-p0QI9pumJx9xuTUu9O0D3FOjGqQE0ptdMfU7/s/uFEA="; };
nativeBuildInputs = [ flit-core ];
propagatedBuildInputs = lib.optionals (pythonOlder "3.10") [ typing-extensions ];
nativeCheckInputs = [ unittestCheckHook ];
pythonImportsCheck = [ "PyPDF2" ];
meta = with lib; { description = "A Pure-Python library built as a PDF toolkit"; homepage = "https://pypdf2.readthedocs.io/"; changelog = "https://github.com/py-pdf/PyPDF2/raw/${version}/CHANGELOG.md"; license = licenses.bsd3; maintainers = with maintainers; [ desiderius vrthra ]; };
}