1{ lib, buildPythonPackage, fetchPypi }:
2
3buildPythonPackage rec {
4 pname = "css-parser";
5 version = "1.0.4";
6
7 src = fetchPypi {
8 inherit pname version;
9 sha256 = "c7ab355512ae51334ba6791a7e4d553f87bef17ba2026f1cc9bf3b17a7779d44";
10 };
11
12 # Test suite not included in tarball yet
13 # See https://github.com/ebook-utils/css-parser/pull/2
14 doCheck = false;
15
16 meta = with lib; {
17 description = "A CSS Cascading Style Sheets library for Python";
18 homepage = "https://github.com/ebook-utils/css-parser";
19 license = licenses.lgpl3Plus;
20 maintainers = with maintainers; [ jethro ];
21 };
22}