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 bb27c25df61e..86e5938f5bab 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -8839,6 +8839,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 { };