2022-06-16 17:23:12 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, pythonOlder
|
2022-12-28 21:21:41 +00:00
|
|
|
, fetchFromGitHub
|
2022-06-16 17:23:12 +00:00
|
|
|
, poetry-core
|
|
|
|
, pdfrw
|
|
|
|
, reportlab
|
2022-11-21 17:40:18 +00:00
|
|
|
, setuptools
|
2022-06-16 17:23:12 +00:00
|
|
|
, svglib
|
|
|
|
, xdg
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "rmrl";
|
2022-12-28 21:21:41 +00:00
|
|
|
version = "unstable-2022-12-11";
|
2022-06-16 17:23:12 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
format = "pyproject";
|
|
|
|
|
2022-12-28 21:21:41 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "naturale0";
|
|
|
|
repo = "rmrl";
|
|
|
|
rev = "3c908536f11dfa92f81e7127ae76f18f0b2cc3e3";
|
|
|
|
hash = "sha256-13pMfRe2McWDpBTlJy/TBT0W5wyd0EXDoocxeIzmqCo=";
|
2022-06-16 17:23:12 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
poetry-core
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
pdfrw
|
|
|
|
reportlab
|
2022-11-21 17:40:18 +00:00
|
|
|
setuptools
|
2022-06-16 17:23:12 +00:00
|
|
|
svglib
|
|
|
|
xdg
|
|
|
|
];
|
|
|
|
|
|
|
|
# upstream has no tests
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "rmrl" ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Render reMarkable documents to PDF";
|
2022-12-28 21:21:41 +00:00
|
|
|
homepage = "https://github.com/naturale0/rmrl";
|
2022-06-16 17:23:12 +00:00
|
|
|
license = lib.licenses.gpl3Plus;
|
|
|
|
maintainers = with lib.maintainers; [ dotlambda ];
|
|
|
|
};
|
|
|
|
}
|