depot/third_party/nixpkgs/pkgs/development/python-modules/cssselect2/default.nix
Default email ce641f4048 Project import generated by Copybara.
GitOrigin-RevId: bc5d68306b40b8522ffb69ba6cff91898c2fbbff
2021-12-06 17:07:01 +01:00

34 lines
677 B
Nix

{ lib
, buildPythonPackage
, pythonOlder
, fetchPypi
, tinycss2
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "cssselect2";
version = "0.4.1";
disabled = pythonOlder "3.5";
src = fetchPypi {
inherit pname version;
sha256 = "93fbb9af860e95dd40bf18c3b2b6ed99189a07c0f29ba76f9c5be71344664ec8";
};
postPatch = ''
sed -i '/^addopts/d' pyproject.toml
'';
propagatedBuildInputs = [ tinycss2 ];
checkInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "cssselect2" ];
meta = with lib; {
description = "CSS selectors for Python ElementTree";
homepage = "https://github.com/Kozea/cssselect2";
license = licenses.bsd3;
};
}