From 9e8e5c785e23e71b34641b54b0141d92509cce69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Tue, 31 May 2022 02:44:31 +0000 Subject: [PATCH] python310Packages.rmcl: init at 0.4.2 --- .../python-modules/rmcl/default.nix | 50 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 52 insertions(+) create mode 100644 pkgs/development/python-modules/rmcl/default.nix 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 { };