depot/third_party/nixpkgs/pkgs/development/python-modules/rmrl/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

62 lines
1 KiB
Nix

{
lib,
buildPythonPackage,
pythonOlder,
fetchFromGitHub,
poetry-core,
pythonRelaxDepsHook,
pdfrw,
reportlab,
rmscene,
setuptools,
svglib,
xdg,
}:
buildPythonPackage rec {
pname = "rmrl";
version = "0.2.1-unstable-2023-06-1";
disabled = pythonOlder "3.10";
pyproject = true;
src = fetchFromGitHub {
owner = "benneti";
repo = "rmrl";
rev = "e6f20322c80c6551174da1826c78261dfb3b74fe";
hash = "sha256-jGWYrw6kcNSb4zhyCjap3l8+YCdOkk5kb5UCiBgW8u0=";
};
nativeBuildInputs = [
poetry-core
pythonRelaxDepsHook
];
pythonRelaxDeps = [
"reportlab"
"rmscene"
"xdg"
];
propagatedBuildInputs = [
pdfrw
reportlab
rmscene
setuptools
svglib
xdg
];
# upstream has no tests
doCheck = false;
pythonImportsCheck = [ "rmrl" ];
meta = {
description = "Render reMarkable documents to PDF";
homepage = "https://github.com/benneti/rmrl";
license = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [ dotlambda ];
};
}