depot/third_party/nixpkgs/pkgs/development/python-modules/cssselect2/default.nix
Default email 02cf88bb76 Project import generated by Copybara.
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
2022-08-12 15:06:08 +03:00

40 lines
744 B
Nix

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