python3Packages.cssselect2: unbreak

Imports were out of date. v0.3.0 no longer supports python2.
This commit is contained in:
Drew Risinger 2020-07-01 12:31:53 -04:00 committed by Jon
parent 20237cc9e5
commit 8fb624ceff

View File

@ -1,8 +1,16 @@
{ lib, buildPythonPackage, fetchPypi, tinycss2, pytest, pytestrunner }: { lib
, buildPythonPackage
, pythonOlder
, fetchPypi
, tinycss2
, pytest
, pytestrunner
}:
buildPythonPackage rec { buildPythonPackage rec {
pname = "cssselect2"; pname = "cssselect2";
version = "0.3.0"; version = "0.3.0";
disabled = pythonOlder "3.5";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
@ -11,12 +19,10 @@ buildPythonPackage rec {
# We're not interested in code quality tests # We're not interested in code quality tests
postPatch = '' postPatch = ''
substituteInPlace setup.py \ substituteInPlace setup.cfg \
--replace "pytest-cov" "" \ --replace "pytest-cov" "" \
--replace "pytest-flake8" "" \ --replace "pytest-flake8" "" \
--replace "pytest-isort" "" --replace "pytest-isort" "" \
substituteInPlace setup.cfg \
--replace "--cov=cssselect2" "" \
--replace "--flake8" "" \ --replace "--flake8" "" \
--replace "--isort" "" --replace "--isort" ""
''; '';