depot/third_party/nixpkgs/pkgs/development/python-modules/inlinestyler/default.nix
Default email 94427deb9d Project import generated by Copybara.
GitOrigin-RevId: f91ee3065de91a3531329a674a45ddcb3467a650
2023-05-24 16:37:59 +03:00

49 lines
894 B
Nix

{ 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 ];
};
}