2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
pythonOlder,
|
|
|
|
fetchFromGitHub,
|
|
|
|
poetry-core,
|
|
|
|
pythonRelaxDepsHook,
|
|
|
|
pdfrw,
|
|
|
|
reportlab,
|
|
|
|
rmscene,
|
|
|
|
setuptools,
|
|
|
|
svglib,
|
|
|
|
xdg,
|
2022-06-16 17:23:12 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "rmrl";
|
2024-02-07 01:22:34 +00:00
|
|
|
version = "0.2.1-unstable-2023-06-1";
|
2022-06-16 17:23:12 +00:00
|
|
|
|
2024-02-07 01:22:34 +00:00
|
|
|
disabled = pythonOlder "3.10";
|
2022-06-16 17:23:12 +00:00
|
|
|
|
2024-02-07 01:22:34 +00:00
|
|
|
pyproject = true;
|
2022-06-16 17:23:12 +00:00
|
|
|
|
2022-12-28 21:21:41 +00:00
|
|
|
src = fetchFromGitHub {
|
2024-02-07 01:22:34 +00:00
|
|
|
owner = "benneti";
|
2022-12-28 21:21:41 +00:00
|
|
|
repo = "rmrl";
|
2024-02-07 01:22:34 +00:00
|
|
|
rev = "e6f20322c80c6551174da1826c78261dfb3b74fe";
|
|
|
|
hash = "sha256-jGWYrw6kcNSb4zhyCjap3l8+YCdOkk5kb5UCiBgW8u0=";
|
2022-06-16 17:23:12 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
poetry-core
|
2024-02-07 01:22:34 +00:00
|
|
|
pythonRelaxDepsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonRelaxDeps = [
|
|
|
|
"reportlab"
|
|
|
|
"rmscene"
|
|
|
|
"xdg"
|
2022-06-16 17:23:12 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
pdfrw
|
|
|
|
reportlab
|
2024-02-07 01:22:34 +00:00
|
|
|
rmscene
|
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";
|
2024-02-07 01:22:34 +00:00
|
|
|
homepage = "https://github.com/benneti/rmrl";
|
2022-06-16 17:23:12 +00:00
|
|
|
license = lib.licenses.gpl3Plus;
|
|
|
|
maintainers = with lib.maintainers; [ dotlambda ];
|
|
|
|
};
|
|
|
|
}
|