Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / inlinestyler / default.nix
blob88e0e3e5469ee2607de005545d7e4a2676baf6e8
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , fetchpatch2
6 # build system
7 , setuptools
9 # dependencies
10 , cssutils
11 , lxml
12 , requests
14 # tests
15 , ipdb
16 , pytestCheckHook
19 buildPythonPackage rec {
20   pname = "inlinestyler";
21   version = "0.2.5";
22   pyproject = true;
24   src = fetchFromGitHub {
25     owner = "dlanger";
26     repo = "inlinestyler";
27     rev = "refs/tags/${version}";
28     hash = "sha256-9TKXqW+5SiiNXnHW2lOVh3zhFhodM7a1UB2yXsEuX3I=";
29   };
31   patches = [
32     # https://github.com/dlanger/inlinestyler/pull/33
33     (fetchpatch2 {
34       url = "https://github.com/dlanger/inlinestyler/commit/29fc1c256fd8f37c3e2fda34c975f0bcfe72cf9a.patch";
35       hash = "sha256-35GWrfvXgpy1KAZ/0pdxsiKNTpDku6/ZX3KWfRUGQmc=";
36     })
37   ];
39   build-system = [
40     setuptools
41   ];
43   dependencies = [
44     cssutils
45     lxml
46     requests
47   ];
49   pythonImportsCheck = [
50     "inlinestyler"
51   ];
53   nativeCheckInputs = [
54     ipdb
55     pytestCheckHook
56   ];
58   meta = with lib; {
59     description = "A simple CSS inliner for generating HTML email messages";
60     homepage = "https://github.com/dlanger/inlinestyler";
61     changelog = "https://github.com/dlanger/inlinestyler/blob/${src.rev}/CHANGELOG";
62     license = licenses.bsd3;
63     maintainers = with maintainers; [ ];
64   };