Files
nixpkgs/pkgs/development/python-modules/css-parser/default.nix
Yohann Boniface 50c67d6ef1 python3Packages.css-parser: enable __structuredAttrs
Co-authored-by: Gaétan Lepage <gaetan@glepage.com>
2026-07-31 00:52:20 +02:00

33 lines
698 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
pytestCheckHook,
setuptools,
}:
buildPythonPackage (finalAttrs: {
pname = "css-parser";
version = "1.0.10";
pyproject = true;
__structuredAttrs = true;
src = fetchPypi {
inherit (finalAttrs) pname version;
hash = "sha256-vx6XKtMzROkyBpZPtM2QjZ3e+fzQwB+pPg1zRnU5Q2M=";
};
build-system = [ setuptools ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "css_parser" ];
meta = {
description = "CSS Cascading Style Sheets library for Python";
homepage = "https://github.com/ebook-utils/css-parser";
license = lib.licenses.lgpl3Plus;
maintainers = with lib.maintainers; [ jethro ];
};
})