Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
43 lines
837 B
Nix
43 lines
837 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
flit-core,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
tinycss2,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "cssselect2";
|
|
version = "0.8.0";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.10";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-dnT/uVSjtGFiOSruKjoK7bLhTs+Z/MKGRJAPTm4+nTo=";
|
|
};
|
|
|
|
postPatch = ''
|
|
sed -i '/^addopts/d' pyproject.toml
|
|
'';
|
|
|
|
build-system = [ flit-core ];
|
|
|
|
dependencies = [ tinycss2 ];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "cssselect2" ];
|
|
|
|
meta = with lib; {
|
|
description = "CSS selectors for Python ElementTree";
|
|
homepage = "https://github.com/Kozea/cssselect2";
|
|
changelog = "https://github.com/Kozea/cssselect2/releases/tag/${version}";
|
|
license = licenses.bsd3;
|
|
maintainers = [ ];
|
|
};
|
|
}
|