mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-27 10:44:36 +00:00
https://github.com/Kozea/cssselect2/releases/tag/0.9.0 This commit was automatically generated using update-python-libraries.
40 lines
782 B
Nix
40 lines
782 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
flit-core,
|
|
pytestCheckHook,
|
|
tinycss2,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "cssselect2";
|
|
version = "0.9.0";
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-dZqiLCFjJjVvZeYueR1mFgoPnJHRQk6NitxedN3fxvs=";
|
|
};
|
|
|
|
postPatch = ''
|
|
sed -i '/^addopts/d' pyproject.toml
|
|
'';
|
|
|
|
build-system = [ flit-core ];
|
|
|
|
dependencies = [ tinycss2 ];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "cssselect2" ];
|
|
|
|
meta = {
|
|
description = "CSS selectors for Python ElementTree";
|
|
homepage = "https://github.com/Kozea/cssselect2";
|
|
changelog = "https://github.com/Kozea/cssselect2/releases/tag/${version}";
|
|
license = lib.licenses.bsd3;
|
|
maintainers = [ ];
|
|
};
|
|
}
|