34 lines
874 B
Nix
Raw Normal View History

{ lib, buildPythonPackage, fetchPypi, tinycss2, pytest, pytestrunner }:
2018-04-07 13:31:54 +02:00
buildPythonPackage rec {
pname = "cssselect2";
2020-06-06 08:47:02 +02:00
version = "0.3.0";
2018-04-07 13:31:54 +02:00
src = fetchPypi {
inherit pname version;
2020-06-06 08:47:02 +02:00
sha256 = "5c2716f06b5de93f701d5755a9666f2ee22cbcd8b4da8adddfc30095ffea3abc";
2018-04-07 13:31:54 +02:00
};
# We're not interested in code quality tests
postPatch = ''
substituteInPlace setup.py \
--replace "pytest-cov" "" \
--replace "pytest-flake8" "" \
--replace "pytest-isort" ""
substituteInPlace setup.cfg \
--replace "--cov=cssselect2" "" \
--replace "--flake8" "" \
--replace "--isort" ""
'';
2018-04-07 13:31:54 +02:00
propagatedBuildInputs = [ tinycss2 ];
2018-04-07 13:31:54 +02:00
checkInputs = [ pytest pytestrunner ];
2018-04-07 13:31:54 +02:00
meta = with lib; {
description = "CSS selectors for Python ElementTree";
homepage = "https://github.com/Kozea/cssselect2";
2018-04-07 13:31:54 +02:00
license = licenses.bsd3;
};
}