From 5ac94c2958e7e4717fdc10be3ca6b05536f17958 Mon Sep 17 00:00:00 2001 From: Cleeyv Date: Mon, 1 Nov 2021 13:22:34 -0400 Subject: [PATCH] pythonPackages.pytest-dotenv: init at 0.5.2 --- .../python-modules/pytest-dotenv/default.nix | 23 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 25 insertions(+) create mode 100644 pkgs/development/python-modules/pytest-dotenv/default.nix diff --git a/pkgs/development/python-modules/pytest-dotenv/default.nix b/pkgs/development/python-modules/pytest-dotenv/default.nix new file mode 100644 index 000000000000..3ae89e6a5197 --- /dev/null +++ b/pkgs/development/python-modules/pytest-dotenv/default.nix @@ -0,0 +1,23 @@ +{ lib, buildPythonPackage, fetchPypi, pytest, python-dotenv }: + +buildPythonPackage rec { + pname = "pytest-dotenv"; + version = "0.5.2"; + + src = fetchPypi { + inherit pname version; + sha256 = "LcbDrG2HZMccbSgE6QLQ/4EPoZaS6V/hOK78mxqnNzI="; + }; + + buildInputs = [ pytest ]; + propagatedBuildInputs = [ python-dotenv ]; + + checkInputs = [ pytest ]; + + meta = with lib; { + description = "A pytest plugin that parses environment files before running tests"; + homepage = "https://github.com/quiqua/pytest-dotenv"; + license = licenses.mit; + maintainers = with maintainers; [ cleeyv ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index f447d82ffdb1..e591b70d3f27 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -7256,6 +7256,8 @@ in { pytest-doctestplus = callPackage ../development/python-modules/pytest-doctestplus { }; + pytest-dotenv = callPackage ../development/python-modules/pytest-dotenv { }; + pytest-env = callPackage ../development/python-modules/pytest-env { }; pytest-error-for-skips = callPackage ../development/python-modules/pytest-error-for-skips { };