biome: 1.9.2 -> 1.9.3 (#349335)
[NixPkgs.git] / pkgs / development / python-modules / inlinestyler / default.nix
blob2fd63571eb2862c7002cb4119702a3b2cd5e1775
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   fetchpatch2,
7   # build system
8   setuptools,
10   # dependencies
11   cssutils,
12   lxml,
13   requests,
15   # tests
16   ipdb,
17   pytestCheckHook,
20 buildPythonPackage rec {
21   pname = "inlinestyler";
22   version = "0.2.5";
23   pyproject = true;
25   src = fetchFromGitHub {
26     owner = "dlanger";
27     repo = "inlinestyler";
28     rev = "refs/tags/${version}";
29     hash = "sha256-9TKXqW+5SiiNXnHW2lOVh3zhFhodM7a1UB2yXsEuX3I=";
30   };
32   patches = [
33     # https://github.com/dlanger/inlinestyler/pull/33
34     (fetchpatch2 {
35       url = "https://github.com/dlanger/inlinestyler/commit/29fc1c256fd8f37c3e2fda34c975f0bcfe72cf9a.patch";
36       hash = "sha256-35GWrfvXgpy1KAZ/0pdxsiKNTpDku6/ZX3KWfRUGQmc=";
37     })
38   ];
40   build-system = [ setuptools ];
42   dependencies = [
43     cssutils
44     lxml
45     requests
46   ];
48   pythonImportsCheck = [ "inlinestyler" ];
50   nativeCheckInputs = [
51     ipdb
52     pytestCheckHook
53   ];
55   meta = with lib; {
56     description = "Simple CSS inliner for generating HTML email messages";
57     homepage = "https://github.com/dlanger/inlinestyler";
58     changelog = "https://github.com/dlanger/inlinestyler/blob/${src.rev}/CHANGELOG";
59     license = licenses.bsd3;
60     maintainers = [ ];
61   };