python3Packages.tinycss2: unbreak

Newly breaking due to changes in pytest-flake8, resolved with upstream
patch.

Took the opportunity to clean up the package a little bit too, remove
unnecessary patch.
This commit is contained in:
Drew Risinger 2020-07-01 12:25:38 -04:00 committed by Jon
parent 265e567557
commit 20237cc9e5
2 changed files with 21 additions and 15 deletions

View file

@ -1,6 +1,16 @@
{ lib, buildPythonPackage, pythonOlder, fetchPypi
{ lib
, buildPythonPackage
, pythonOlder
, fetchPypi
, fetchpatch
, webencodings
, pytest, pytestrunner, pytestcov, pytest-flake8, pytest-isort }:
# Check inputs
, pytest
, pytestrunner
, pytestcov
, pytest-flake8
, pytest-isort
}:
buildPythonPackage rec {
pname = "tinycss2";
@ -12,7 +22,15 @@ buildPythonPackage rec {
sha256 = "1kw84y09lggji4krkc58jyhsfj31w8npwhznr7lf19d0zbix09v4";
};
patches = [ ./remove-redundant-dependency.patch ];
patches = [
(
fetchpatch {
name = "tinycss2-fix-pytest-flake8-fail.patch";
url = "https://github.com/Kozea/tinycss2/commit/6556604fb98c2153412384d6f0f705db2da1aa60.patch";
sha256 = "1srvdzg1bak65fawd611rlskcgn5abmwmyjnk8qrrrasr554bc59";
}
)
];
propagatedBuildInputs = [ webencodings ];

View file

@ -1,12 +0,0 @@
diff --git a/setup.cfg b/setup.cfg
index b3b3c2d..480f3e6 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -33,7 +33,6 @@ project_urls =
[options]
packages = find:
-setup_requires = pytest-runner
install_requires =
setuptools >= 39.2.0
webencodings >= 0.4