From 8ac4008c0918bfcd910535203c8c9caf98da0f39 Mon Sep 17 00:00:00 2001 From: Doron Behar Date: Sat, 8 Oct 2022 12:23:45 +0300 Subject: [PATCH] python3.pkgs.pytest-plt: init at 1.1.0 --- .../python-modules/pytest-plt/default.nix | 29 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 31 insertions(+) create mode 100644 pkgs/development/python-modules/pytest-plt/default.nix diff --git a/pkgs/development/python-modules/pytest-plt/default.nix b/pkgs/development/python-modules/pytest-plt/default.nix new file mode 100644 index 000000000000..2c995aaeff1c --- /dev/null +++ b/pkgs/development/python-modules/pytest-plt/default.nix @@ -0,0 +1,29 @@ +{ lib +, buildPythonPackage +, fetchPypi +, matplotlib +, pytestCheckHook +}: + +buildPythonPackage rec { + pname = "pytest-plt"; + version = "1.1.0"; + + src = fetchPypi { + inherit pname version; + sha256 = "sha256-IkTNlierFXIG9WSVUfVoirfQ6z7JOYlCaa5NhnBSuxc="; + }; + + checkInputs = [ + pytestCheckHook + matplotlib + ]; + + meta = with lib; { + description = "provides fixtures for quickly creating Matplotlib plots in your tests"; + homepage = "https://www.nengo.ai/pytest-plt/"; + changelog = "https://github.com/nengo/pytest-plt/blob/master/CHANGES.rst"; + license = licenses.mit; + maintainers = [ maintainers.doronbehar ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index af0c07084a9f..1911d7eb3c83 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -8811,6 +8811,8 @@ self: super: with self; { pytest-param-files = callPackage ../development/python-modules/pytest-param-files { }; + pytest-plt = callPackage ../development/python-modules/pytest-plt { }; + pytest-pylint = callPackage ../development/python-modules/pytest-pylint { }; pytest-qt = callPackage ../development/python-modules/pytest-qt { };