diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2022-09-05 16:18:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-05 16:18:31 +0200 |
commit | 31099044b298dbe282ab1b466918a3249d97f12b (patch) | |
tree | 2730cf5808c550f9383e67e8ecedd743493f6b45 /pkgs | |
parent | cc5205a0138708c02d8349656b505508f5d833a7 (diff) | |
parent | 40e6f6378e18259b9b645e2103a7ce5d4364a5f2 (diff) |
Merge pull request #188518 from pbsds/remi
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/python-modules/remi/default.nix | 61 | ||||
-rw-r--r-- | pkgs/top-level/python-packages.nix | 2 |
2 files changed, 63 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/remi/default.nix b/pkgs/development/python-modules/remi/default.nix new file mode 100644 index 0000000000000..4e2b9acdf64bc --- /dev/null +++ b/pkgs/development/python-modules/remi/default.nix @@ -0,0 +1,61 @@ +{ stdenv +, lib +, buildPythonPackage +, fetchFromGitHub +, pytestCheckHook +, matplotlib +, python-snap7 +, opencv4 +}: + +buildPythonPackage rec { + pname = "remi"; + version = "2022.7.27"; + + src = fetchFromGitHub { + owner = "rawpython"; + repo = pname; + rev = version; + hash = "sha256-VQn+Uzp6oGSit8ot0e8B0C2N41Q8+J+o91skyVN1gDA="; + }; + + preCheck = '' + # for some reason, REMI already deal with these using try blocks, but they fail + substituteInPlace test/test_widget.py \ + --replace \ + "from html_validator import " \ + "from .html_validator import " + substituteInPlace test/test_examples_app.py \ + --replace \ + "from mock_server_and_request import " \ + "from .mock_server_and_request import " \ + --replace \ + "from html_validator import " \ + "from .html_validator import " + # Halves number of warnings + substituteInPlace test/test_*.py \ + --replace \ + "self.assertEquals(" \ + "self.assertEqual(" + ''; + + checkInputs = [ + pytestCheckHook + python-snap7 + opencv4 + matplotlib + ]; + + pythonImportsCheck = [ + "remi" + "editor" + "editor.widgets" + ]; + + meta = with lib; { + description = "Pythonic, lightweight and websocket-based webui library"; + homepage = "https://github.com/rawpython/remi"; + license = with licenses; [ asl20 ]; + maintainers = with maintainers; [ pbsds ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 4319356687a71..81a0dd25aba23 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -9433,6 +9433,8 @@ in { remarshal = callPackage ../development/python-modules/remarshal { }; + remi = callPackage ../development/python-modules/remi { }; + renault-api = callPackage ../development/python-modules/renault-api { }; rencode = callPackage ../development/python-modules/rencode { }; |