Unverified Commit 2ef25d3c authored by Martin Weinelt's avatar Martin Weinelt Committed by GitHub
Browse files

Merge pull request #231381 from mweinelt/inlinestyler-0.2.5

python310Packages.inlinestyler: init at 0.2.5
parents d702c385 57cbbf5e
Loading
Loading
Loading
Loading
+49 −0
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, fetchFromGitHub

# dependencies
, cssutils
, lxml
, requests

# tests
, ipdb
, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "inlinestyler";
  version = "0.2.5";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "dlanger";
    repo = "inlinestyler";
    rev = version;
    hash = "sha256-9TKXqW+5SiiNXnHW2lOVh3zhFhodM7a1UB2yXsEuX3I=";
  };

  propagatedBuildInputs = [
    cssutils
    lxml
    requests
  ];

  pythonImportsCheck = [
    "inlinestyler"
  ];

  nativeCheckInputs = [
    ipdb
    pytestCheckHook
  ];

  meta = with lib; {
    description = "A simple CSS inliner for generating HTML email messages";
    homepage = "https://github.com/dlanger/inlinestyler";
    changelog = "https://github.com/dlanger/inlinestyler/blob/${src.rev}/CHANGELOG";
    license = licenses.bsd3;
    maintainers = with maintainers; [ hexa ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -4859,6 +4859,8 @@ self: super: with self; {

  inkex = callPackage ../development/python-modules/inkex { };

  inlinestyler = callPackage ../development/python-modules/inlinestyler { };

  inotify = callPackage ../development/python-modules/inotify { };

  inotify-simple = callPackage ../development/python-modules/inotify-simple { };