11 buildPythonPackage rec {
14 format = "setuptools";
16 disabled = pythonOlder "3.7";
19 inherit pname version;
20 hash = "sha256-EjBvtQ5enn6u74S4Au2HdIi6gONcZyhn9UjAkkp2cW4=";
24 sed -i "/--cov/d" setup.cfg
27 nativeBuildInputs = [ cython ];
29 propagatedBuildInputs = [ cssutils ];
31 nativeCheckInputs = [ pytestCheckHook ];
34 # Force Cython to re-generate this file. If it is present, Cython will
35 # think it is "up to date" even though it was generated with an older,
36 # incompatible version of Cython. See
37 # https://github.com/Kozea/tinycss/issues/17.
41 # Disable Cython tests
42 TINYCSS_SKIP_SPEEDUPS_TESTS = true;
44 pythonImportsCheck = [ "tinycss" ];
47 description = "Complete yet simple CSS parser for Python";
48 homepage = "https://tinycss.readthedocs.io";
49 changelog = "https://github.com/Kozea/tinycss/releases/tag/v${version}";
50 license = licenses.bsd3;