linuxPackages_latest.broadcom_sta: add patch to compile on Kernel 6.12 (#359484)
[NixPkgs.git] / pkgs / development / python-modules / cssselect / default.nix
blob41dfed02e71648df77f3e586aec62e2d8b23671c
2   lib,
3   buildPythonPackage,
4   fetchPypi,
5   pythonOlder,
6   setuptools,
7   pytestCheckHook,
8   lxml,
9 }:
11 buildPythonPackage rec {
12   pname = "cssselect";
13   version = "1.2.0";
14   format = "pyproject";
16   disabled = pythonOlder "3.7";
18   src = fetchPypi {
19     inherit pname version;
20     sha256 = "666b19839cfaddb9ce9d36bfe4c969132c647b92fc9088c4e23f786b30f1b3dc";
21   };
23   nativeBuildInputs = [ setuptools ];
25   nativeCheckInputs = [
26     pytestCheckHook
27     lxml
28   ];
30   pythonImportsCheck = [ "cssselect" ];
32   meta = with lib; {
33     description = "CSS Selectors for Python";
34     homepage = "https://cssselect.readthedocs.io/";
35     changelog = "https://github.com/scrapy/cssselect/v${version}//CHANGES";
36     license = licenses.bsd3;
37     maintainers = [ ];
38   };