Merge pull request #283397 from dotlambda/rmfuse-fix

rmfuse: fix build
This commit is contained in:
Robert Schütz 2024-01-28 04:31:02 +00:00 committed by GitHub
commit 542783f91e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 74 additions and 13 deletions

View File

@ -3,8 +3,10 @@
, pythonOlder
, fetchFromGitHub
, poetry-core
, pythonRelaxDepsHook
, pdfrw
, reportlab
, rmscene
, setuptools
, svglib
, xdg
@ -12,26 +14,34 @@
buildPythonPackage rec {
pname = "rmrl";
version = "unstable-2022-12-11";
version = "0.2.1-unstable-2023-06-1";
disabled = pythonOlder "3.7";
disabled = pythonOlder "3.10";
format = "pyproject";
pyproject = true;
src = fetchFromGitHub {
owner = "naturale0";
owner = "benneti";
repo = "rmrl";
rev = "3c908536f11dfa92f81e7127ae76f18f0b2cc3e3";
hash = "sha256-13pMfRe2McWDpBTlJy/TBT0W5wyd0EXDoocxeIzmqCo=";
rev = "e6f20322c80c6551174da1826c78261dfb3b74fe";
hash = "sha256-jGWYrw6kcNSb4zhyCjap3l8+YCdOkk5kb5UCiBgW8u0=";
};
nativeBuildInputs = [
poetry-core
pythonRelaxDepsHook
];
pythonRelaxDeps = [
"reportlab"
"rmscene"
"xdg"
];
propagatedBuildInputs = [
pdfrw
reportlab
rmscene
setuptools
svglib
xdg
@ -44,7 +54,7 @@ buildPythonPackage rec {
meta = {
description = "Render reMarkable documents to PDF";
homepage = "https://github.com/naturale0/rmrl";
homepage = "https://github.com/benneti/rmrl";
license = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [ dotlambda ];
};

View File

@ -0,0 +1,47 @@
{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, poetry-core
, packaging
, hypothesis
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "rmscene";
version = "0.5.0";
pyproject = true;
disabled = pythonOlder "3.10";
src = fetchFromGitHub {
owner = "ricklupton";
repo = "rmscene";
rev = "v${version}";
hash = "sha256-uIvoKdW7caOfc8OEGIcyDwyos9NLwtZ++CeZdUO/G8M=";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
packaging
];
pythonImportsCheck = [ "rmscene" ];
nativeCheckInputs = [
hypothesis
pytestCheckHook
];
meta = {
changelog = "https://github.com/ricklupton/rmscene/blob/${src.rev}/README.md#changelog";
description = "Read v6 .rm files from the reMarkable tablet";
homepage = "https://github.com/ricklupton/rmscene";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ dotlambda ];
};
}

View File

@ -7,7 +7,7 @@ python3.pkgs.buildPythonApplication rec {
pname = "rmfuse";
version = "unstable-2021-06-06";
format = "pyproject";
pyproject = true;
src = fetchFromGitHub {
owner = "rschroll";
@ -16,13 +16,15 @@ python3.pkgs.buildPythonApplication rec {
hash = "sha256-W3kS6Kkmp8iWMOYFL7r1GyjSQvFotBXQCuTMK0vyHQ8=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace 'bidict = "^' 'bidict = ">='
'';
nativeBuildInputs = with python3.pkgs; [
poetry-core
pythonRelaxDepsHook
];
pythonRelaxDeps = [
"bidict"
"rmrl"
"xdg"
];
propagatedBuildInputs = with python3.pkgs; [

View File

@ -12706,6 +12706,8 @@ self: super: with self; {
rmrl = callPackage ../development/python-modules/rmrl { };
rmscene = callPackage ../development/python-modules/rmscene { };
rmsd = callPackage ../development/python-modules/rmsd { };
rnc2rng = callPackage ../development/python-modules/rnc2rng { };