a0cb138ada
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
42 lines
779 B
Nix
42 lines
779 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pythonOlder
|
|
, setuptools
|
|
, pytestCheckHook
|
|
, lxml
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "cssselect";
|
|
version = "1.2.0";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "666b19839cfaddb9ce9d36bfe4c969132c647b92fc9088c4e23f786b30f1b3dc";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
lxml
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"cssselect"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "CSS Selectors for Python";
|
|
homepage = "https://cssselect.readthedocs.io/";
|
|
changelog = "https://github.com/scrapy/cssselect/v${version}//CHANGES";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ ];
|
|
};
|
|
}
|