nixpkgs/pkgs/development/python-modules/rmrl/default.nix
Martin Weinelt ef166d7ff3 python3Packages.rmrl: propagate setuptools
Imports pkg_resources during runtime.
2022-11-12 08:11:41 -08:00

49 lines
813 B
Nix

{ lib
, buildPythonPackage
, pythonOlder
, fetchPypi
, poetry-core
, pdfrw
, reportlab
, setuptools
, 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
setuptools
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 ];
};
}