···1-{ poetry2nix, pkgs, lib }:
000000023-let
4- pythonPackages = (poetry2nix.mkPoetryPackages {
5- projectDir = ./.;
6- overrides = [
7- poetry2nix.defaultPoetryOverrides
8- (import ./poetry-git-overlay.nix { inherit pkgs; })
9- (self: super: {
1011- rmfuse = super.rmfuse.overridePythonAttrs(old: {
12- meta = old.meta // {
13- description = "RMfuse provides access to your reMarkable Cloud files in the form of a FUSE filesystem.";
14- longDescription = ''
15- RMfuse provides access to your reMarkable Cloud files in the form of a FUSE filesystem. These files are exposed either in their original format, or as PDF files that contain your annotations. This lets you manage files in the reMarkable Cloud using the same tools you use on your local system.
16- '';
17- license = lib.licenses.mit;
18- homepage = "https://github.com/rschroll/rmfuse";
19- maintainers = [ lib.maintainers.adisbladis ];
20- };
21- });
2223- reportlab = let
24- ft = pkgs.freetype.overrideAttrs (oldArgs: { dontDisableStatic = true; });
25- in super.reportlab.overridePythonAttrs(old: {
26- postPatch = ''
27- substituteInPlace setup.py \
28- --replace "mif = findFile(d,'ft2build.h')" "mif = findFile('${lib.getDev ft}','ft2build.h')"
29- '';
3031- NIX_CFLAGS_COMPILE = "-I${pkgs.freetype}/include/freetype2";
003233- nativeBuildInputs = old.nativeBuildInputs ++ [
34- pkgs.pkg-config
35- ];
36- buildInputs = old.buildInputs ++ [
37- pkgs.freetype
38- ];
39- });
4041- })
42- ];
43- }).python.pkgs;
44-in pythonPackages.rmfuse
0000000000
···1+{ lib
2+, python3
3+, fetchFromGitHub
4+}:
5+6+python3.pkgs.buildPythonApplication rec {
7+ pname = "rmfuse";
8+ version = "unstable-2021-06-06";
910+ format = "pyproject";
0000001112+ src = fetchFromGitHub {
13+ owner = "rschroll";
14+ repo = "rmfuse";
15+ rev = "3796b8610c8a965a60a417fc0bf8ea5200b71fd2";
16+ hash = "sha256-W3kS6Kkmp8iWMOYFL7r1GyjSQvFotBXQCuTMK0vyHQ8=";
17+ };
000001819+ postPatch = ''
20+ substituteInPlace pyproject.toml \
21+ --replace 'bidict = "^' 'bidict = ">='
22+ '';
0002324+ nativeBuildInputs = with python3.pkgs; [
25+ poetry-core
26+ ];
2728+ propagatedBuildInputs = with python3.pkgs; [
29+ bidict
30+ rmrl
31+ rmcl
32+ pyfuse3
33+ xdg
34+ ];
3536+ meta = {
37+ description = "FUSE access to the reMarkable Cloud";
38+ homepage = "https://github.com/rschroll/rmfuse";
39+ license = lib.licenses.mit;
40+ longDescription = ''
41+ RMfuse provides access to your reMarkable Cloud files in the form of a
42+ FUSE filesystem. These files are exposed either in their original format,
43+ or as PDF files that contain your annotations. This lets you manage files
44+ in the reMarkable Cloud using the same tools you use on your local
45+ system.
46+ '';
47+ maintainers = with lib.maintainers; [ adisbladis ];
48+ };
49+}