From 95f108391db2d31e0b44984ed28d67c49ce33a56 Mon Sep 17 00:00:00 2001 From: Orivej Desh Date: Mon, 7 Dec 2020 10:46:57 +0000 Subject: [PATCH] python3Packages.pytest-subtests: init at 0.3.2 --- .../pytest-subtests/default.nix | 22 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 24 insertions(+) create mode 100644 pkgs/development/python-modules/pytest-subtests/default.nix diff --git a/pkgs/development/python-modules/pytest-subtests/default.nix b/pkgs/development/python-modules/pytest-subtests/default.nix new file mode 100644 index 000000000000..3be2adc11a42 --- /dev/null +++ b/pkgs/development/python-modules/pytest-subtests/default.nix @@ -0,0 +1,22 @@ +{ lib, buildPythonPackage, isPy27, fetchPypi, setuptools_scm, pytestCheckHook }: + +buildPythonPackage rec { + pname = "pytest-subtests"; + version = "0.3.2"; + disabled = isPy27; + + src = fetchPypi { + inherit pname version; + sha256 = "1mxg91mrn8672f8hwg0f31xkyarnq7q0hr4fvb9hcb09jshq2wk7"; + }; + + nativeBuildInputs = [ setuptools_scm ]; + + checkInputs = [ pytestCheckHook ]; + + meta = with lib; { + description = "pytest plugin for unittest subTest() support and subtests fixture"; + homepage = "https://github.com/pytest-dev/pytest-subtests"; + license = licenses.mit; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index c6770420c3ff..a4c01e2b3130 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5815,6 +5815,8 @@ in { pytest-subtesthack = callPackage ../development/python-modules/pytest-subtesthack { }; + pytest-subtests = callPackage ../development/python-modules/pytest-subtests { }; + pytest-sugar = callPackage ../development/python-modules/pytest-sugar { }; pytest-testmon = callPackage ../development/python-modules/pytest-testmon { };