diff --git a/pkgs/development/python-modules/css-parser/default.nix b/pkgs/development/python-modules/css-parser/default.nix new file mode 100644 index 000000000000..8b2fe0929c7b --- /dev/null +++ b/pkgs/development/python-modules/css-parser/default.nix @@ -0,0 +1,22 @@ +{ lib, buildPythonPackage, fetchPypi }: + +buildPythonPackage rec { + pname = "css-parser"; + version = "1.0.4"; + + src = fetchPypi { + inherit pname version; + sha256 = "c7ab355512ae51334ba6791a7e4d553f87bef17ba2026f1cc9bf3b17a7779d44"; + }; + + # Test suite not included in tarball yet + # See https://github.com/ebook-utils/css-parser/pull/2 + doCheck = false; + + meta = with lib; { + description = "A CSS Cascading Style Sheets library for Python"; + homepage = https://github.com/ebook-utils/css-parser; + license = licenses.lgpl3Plus; + maintainers = with maintainers; [ jethro ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index b7eb692c4ab8..4232a167782d 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -1519,6 +1519,8 @@ in { cssutils = callPackage ../development/python-modules/cssutils { }; + css-parser = callPackage ../development/python-modules/css-parser { }; + darcsver = callPackage ../development/python-modules/darcsver { }; dask = callPackage ../development/python-modules/dask { };