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