1{
2 lib,
3 buildPythonPackage,
4 pythonOlder,
5 fetchPypi,
6 poetry-core,
7 asks,
8 trio,
9 xdg,
10}:
11
12buildPythonPackage rec {
13 pname = "rmcl";
14 version = "0.4.2";
15
16 disabled = pythonOlder "3.7";
17
18 format = "pyproject";
19
20 src = fetchPypi {
21 inherit pname version;
22 sha256 = "58de4758e7e3cb7acbf28fcfa80f4155252afdfb191beb4ba4aa36961f66cc67";
23 };
24
25 postPatch = ''
26 substituteInPlace pyproject.toml \
27 --replace '= "^' '= ">='
28 '';
29
30 nativeBuildInputs = [ poetry-core ];
31
32 propagatedBuildInputs = [
33 asks
34 trio
35 xdg
36 ];
37
38 # upstream has no tests
39 doCheck = false;
40
41 pythonImportsCheck = [ "rmcl" ];
42
43 meta = {
44 description = "ReMarkable Cloud Library";
45 homepage = "https://github.com/rschroll/rmcl";
46 license = lib.licenses.mit;
47 maintainers = with lib.maintainers; [ dotlambda ];
48 };
49}