depot/third_party/nixpkgs/pkgs/development/python-modules/striprtf/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

30 lines
691 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
pythonOlder,
}:
buildPythonPackage rec {
pname = "striprtf";
version = "0.0.26";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-/bK7p6xEAHLRxB6rUNjXSuiPYKi2V1xuLHgF3EYgk6o=";
};
pythonImportsCheck = [ "striprtf" ];
meta = with lib; {
changelog = "https://github.com/joshy/striprtf/blob/v${version}/CHANGELOG.md";
homepage = "https://github.com/joshy/striprtf";
description = "Simple library to convert rtf to text";
mainProgram = "striprtf";
maintainers = with maintainers; [ aanderse ];
license = with licenses; [ bsd3 ];
};
}