python310Packages.bibtexparser: clean up python 2 dependencies (#201457)

Latest version no longer depends on unittest2 and future packages, so we
can clean them up.
This commit is contained in:
Theodore Ni 2022-11-15 23:21:38 -08:00 committed by GitHub
parent 41d87c3fb7
commit 8f1d59e2c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,7 +1,6 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, future
, pyparsing
, pytestCheckHook
, pythonOlder
@ -22,7 +21,6 @@ buildPythonPackage rec {
};
propagatedBuildInputs = [
future
pyparsing
];
@ -30,12 +28,6 @@ buildPythonPackage rec {
pytestCheckHook
];
postPatch = ''
# https://github.com/sciunto-org/python-bibtexparser/pull/259
substituteInPlace bibtexparser/tests/test_crossref_resolving.py \
--replace "import unittest2 as unittest" "import unittest"
'';
pythonImportsCheck = [
"bibtexparser"
];