nixpkgs/pkgs/development/python-modules/rmrl/default.nix
2022-06-12 23:19:00 +00:00

48 lines
785 B
Nix

{ 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 ];
};
}