2020-07-01 09:31:53 -07:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, pythonOlder
|
|
|
|
, fetchPypi
|
|
|
|
, tinycss2
|
|
|
|
, pytest
|
|
|
|
, pytestrunner
|
2020-06-23 08:44:12 -07:00
|
|
|
, pytestcov
|
|
|
|
, pytest-flake8
|
|
|
|
, pytest-isort
|
2020-07-01 09:31:53 -07:00
|
|
|
}:
|
2018-04-07 04:31:54 -07:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "cssselect2";
|
2020-11-04 11:58:14 -08:00
|
|
|
version = "0.4.1";
|
2020-07-01 09:31:53 -07:00
|
|
|
disabled = pythonOlder "3.5";
|
2018-04-07 04:31:54 -07:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-11-04 11:58:14 -08:00
|
|
|
sha256 = "93fbb9af860e95dd40bf18c3b2b6ed99189a07c0f29ba76f9c5be71344664ec8";
|
2018-04-07 04:31:54 -07:00
|
|
|
};
|
|
|
|
|
2019-03-26 06:57:49 -07:00
|
|
|
propagatedBuildInputs = [ tinycss2 ];
|
2018-04-07 04:31:54 -07:00
|
|
|
|
2020-06-23 08:44:12 -07:00
|
|
|
checkInputs = [ pytest pytestrunner pytestcov pytest-flake8 pytest-isort ];
|
2018-04-07 04:31:54 -07:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "CSS selectors for Python ElementTree";
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://github.com/Kozea/cssselect2";
|
2018-04-07 04:31:54 -07:00
|
|
|
license = licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|