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