1{
2 lib,
3 buildPythonPackage,
4 pythonOlder,
5 pythonRelaxDepsHook,
6 fetchFromGitHub,
7 poetry-core,
8 packaging,
9 hypothesis,
10 pytestCheckHook,
11}:
12
13buildPythonPackage rec {
14 pname = "rmscene";
15 version = "0.5.0";
16 pyproject = true;
17
18 disabled = pythonOlder "3.10";
19
20 src = fetchFromGitHub {
21 owner = "ricklupton";
22 repo = "rmscene";
23 rev = "v${version}";
24 hash = "sha256-uIvoKdW7caOfc8OEGIcyDwyos9NLwtZ++CeZdUO/G8M=";
25 };
26
27 nativeBuildInputs = [
28 poetry-core
29 pythonRelaxDepsHook
30 ];
31
32 pythonRelaxDeps = [ "packaging" ];
33
34 propagatedBuildInputs = [ packaging ];
35
36 pythonImportsCheck = [ "rmscene" ];
37
38 nativeCheckInputs = [
39 hypothesis
40 pytestCheckHook
41 ];
42
43 meta = {
44 changelog = "https://github.com/ricklupton/rmscene/blob/${src.rev}/README.md#changelog";
45 description = "Read v6 .rm files from the reMarkable tablet";
46 homepage = "https://github.com/ricklupton/rmscene";
47 license = lib.licenses.mit;
48 maintainers = with lib.maintainers; [ dotlambda ];
49 };
50}