1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4
5# dependencies
6, cssutils
7, lxml
8, requests
9
10# tests
11, ipdb
12, pytestCheckHook
13}:
14
15buildPythonPackage rec {
16 pname = "inlinestyler";
17 version = "0.2.5";
18 format = "setuptools";
19
20 src = fetchFromGitHub {
21 owner = "dlanger";
22 repo = "inlinestyler";
23 rev = version;
24 hash = "sha256-9TKXqW+5SiiNXnHW2lOVh3zhFhodM7a1UB2yXsEuX3I=";
25 };
26
27 propagatedBuildInputs = [
28 cssutils
29 lxml
30 requests
31 ];
32
33 pythonImportsCheck = [
34 "inlinestyler"
35 ];
36
37 nativeCheckInputs = [
38 ipdb
39 pytestCheckHook
40 ];
41
42 meta = with lib; {
43 description = "A simple CSS inliner for generating HTML email messages";
44 homepage = "https://github.com/dlanger/inlinestyler";
45 changelog = "https://github.com/dlanger/inlinestyler/blob/${src.rev}/CHANGELOG";
46 license = licenses.bsd3;
47 maintainers = with maintainers; [ hexa ];
48 };
49}