From 03daf984411d1747c42722804cf20e3773bb56ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Tue, 31 May 2022 02:40:30 +0000 Subject: [PATCH] python310Packages.rmrl: init at 0.2.1 --- .../python-modules/rmrl/default.nix | 47 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 49 insertions(+) create mode 100644 pkgs/development/python-modules/rmrl/default.nix diff --git a/pkgs/development/python-modules/rmrl/default.nix b/pkgs/development/python-modules/rmrl/default.nix new file mode 100644 index 000000000000..d05bb5beede5 --- /dev/null +++ b/pkgs/development/python-modules/rmrl/default.nix @@ -0,0 +1,47 @@ +{ lib +, buildPythonPackage +, pythonOlder +, fetchPypi +, poetry-core +, pdfrw +, reportlab +, svglib +, xdg +}: + +buildPythonPackage rec { + pname = "rmrl"; + version = "0.2.1"; + + disabled = pythonOlder "3.7"; + + format = "pyproject"; + + src = fetchPypi { + inherit pname version; + sha256 = "c532bef4168350e6ab17cf37c6481dc12b6a78e007c073503f082f36215b71c9"; + }; + + nativeBuildInputs = [ + poetry-core + ]; + + propagatedBuildInputs = [ + pdfrw + reportlab + svglib + xdg + ]; + + # upstream has no tests + doCheck = false; + + pythonImportsCheck = [ "rmrl" ]; + + meta = { + description = "Render reMarkable documents to PDF"; + homepage = "https://github.com/rschroll/rmrl"; + license = lib.licenses.gpl3Plus; + maintainers = with lib.maintainers; [ dotlambda ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index c626fc0aa653..c17451d4a52a 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -9260,6 +9260,8 @@ in { rlp = callPackage ../development/python-modules/rlp { }; + rmrl = callPackage ../development/python-modules/rmrl { }; + rnc2rng = callPackage ../development/python-modules/rnc2rng { }; rnginline = callPackage ../development/python-modules/rnginline { };