1{ lib, buildPythonPackage, pythonOlder, fetchPypi
2, webencodings
3, pytest, pytestrunner, pytestcov, pytest-flake8, pytest-isort }:
4
5buildPythonPackage rec {
6 pname = "tinycss2";
7 version = "1.0.2";
8 disabled = pythonOlder "3.5";
9
10 src = fetchPypi {
11 inherit pname version;
12 sha256 = "1kw84y09lggji4krkc58jyhsfj31w8npwhznr7lf19d0zbix09v4";
13 };
14
15 patches = [ ./remove-redundant-dependency.patch ];
16
17 propagatedBuildInputs = [ webencodings ];
18
19 checkInputs = [ pytest pytestrunner pytestcov pytest-flake8 pytest-isort ];
20
21 meta = with lib; {
22 description = "Low-level CSS parser for Python";
23 homepage = https://github.com/Kozea/tinycss2;
24 license = licenses.bsd3;
25 };
26}