diff --git a/pkgs/development/python-modules/rmcl/default.nix b/pkgs/development/python-modules/rmcl/default.nix new file mode 100644 index 000000000000..001992f539eb --- /dev/null +++ b/pkgs/development/python-modules/rmcl/default.nix @@ -0,0 +1,50 @@ +{ lib +, buildPythonPackage +, pythonOlder +, fetchPypi +, poetry-core +, asks +, trio +, xdg +}: + +buildPythonPackage rec { + pname = "rmcl"; + version = "0.4.2"; + + disabled = pythonOlder "3.7"; + + format = "pyproject"; + + src = fetchPypi { + inherit pname version; + sha256 = "58de4758e7e3cb7acbf28fcfa80f4155252afdfb191beb4ba4aa36961f66cc67"; + }; + + postPatch = '' + substituteInPlace pyproject.toml \ + --replace '= "^' '= ">=' + ''; + + nativeBuildInputs = [ + poetry-core + ]; + + propagatedBuildInputs = [ + asks + trio + xdg + ]; + + # upstream has no tests + doCheck = false; + + pythonImportsCheck = [ "rmcl" ]; + + meta = { + description = "ReMarkable Cloud Library"; + homepage = "https://github.com/rschroll/rmcl"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ dotlambda ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index a7250c4f89c6..3e6366135bbc 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -9264,6 +9264,8 @@ in { rlp = callPackage ../development/python-modules/rlp { }; + rmcl = callPackage ../development/python-modules/rmcl { }; + rmrl = callPackage ../development/python-modules/rmrl { }; rnc2rng = callPackage ../development/python-modules/rnc2rng { };