587713944a
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
31 lines
693 B
Nix
31 lines
693 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 = "A simple library to convert rtf to text";
|
|
mainProgram = "striprtf";
|
|
maintainers = with maintainers; [ aanderse ];
|
|
license = with licenses; [ bsd3 ];
|
|
};
|
|
}
|