python311Packages.pdfplumber: remove coverage and lint parts
This commit is contained in:
@@ -1,32 +1,22 @@
|
||||
{ lib
|
||||
, stdenv
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pythonOlder
|
||||
# build inputs
|
||||
, pdfminer-six
|
||||
, pillow
|
||||
, wand
|
||||
# check inputs
|
||||
, pytestCheckHook
|
||||
, pytest-cov
|
||||
, pytest-parallel
|
||||
, flake8
|
||||
, black
|
||||
, isort
|
||||
, pandas
|
||||
, mypy
|
||||
, pandas-stubs
|
||||
, types-pillow
|
||||
, jupyterlab
|
||||
, nbexec
|
||||
, pandas
|
||||
, pandas-stubs
|
||||
, pdfminer-six
|
||||
, pillow
|
||||
, pytest-parallel
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, types-pillow
|
||||
, wand
|
||||
}:
|
||||
let
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pdfplumber";
|
||||
version = "0.9.0";
|
||||
in
|
||||
buildPythonPackage {
|
||||
inherit pname version;
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
@@ -38,6 +28,11 @@ buildPythonPackage {
|
||||
hash = "sha256-cGTn1JTSp1YvksemjlvvToZcVauZ7GKINiNmG5f4zKg=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.cfg \
|
||||
--replace "--cov=pdfplumber --cov-report xml:coverage.xml --cov-report term" ""
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [
|
||||
pdfminer-six
|
||||
pillow
|
||||
@@ -49,18 +44,13 @@ buildPythonPackage {
|
||||
'';
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
pytest-cov
|
||||
pytest-parallel
|
||||
flake8
|
||||
black
|
||||
isort
|
||||
pandas
|
||||
mypy
|
||||
pandas-stubs
|
||||
types-pillow
|
||||
jupyterlab
|
||||
nbexec
|
||||
pandas
|
||||
pandas-stubs
|
||||
pytest-parallel
|
||||
pytestCheckHook
|
||||
types-pillow
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
@@ -73,7 +63,7 @@ buildPythonPackage {
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Plumb a PDF for detailed information about each char, rectangle, line, et cetera — and easily extract text and tables.";
|
||||
description = "Plumb a PDF for detailed information about each char, rectangle, line, et cetera — and easily extract text and tables";
|
||||
homepage = "https://github.com/jsvine/pdfplumber";
|
||||
changelog = "https://github.com/jsvine/pdfplumber/releases/tag/v${version}";
|
||||
license = licenses.mit;
|
||||
|
||||
Reference in New Issue
Block a user