diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2021-02-28 18:11:30 +0100 |
---|---|---|
committer | Fabian Affolter <mail@fabian-affolter.ch> | 2021-02-28 18:11:30 +0100 |
commit | 21dd525bc97fb57877df9daffd17669b5fb9513d (patch) | |
tree | 7ca2edd0a3ce2ddf17404c6b4342854377b9af57 /pkgs/development/python-modules/python-dotenv | |
parent | 7b6687a210113f19ad04703543a39699409371c7 (diff) |
python3Packages.python-dotenv: switch to pytestCheckHook
Diffstat (limited to 'pkgs/development/python-modules/python-dotenv')
-rw-r--r-- | pkgs/development/python-modules/python-dotenv/default.nix | 29 |
1 files changed, 19 insertions, 10 deletions
diff --git a/pkgs/development/python-modules/python-dotenv/default.nix b/pkgs/development/python-modules/python-dotenv/default.nix index e654826e0bc2b..1d8a9a85457bc 100644 --- a/pkgs/development/python-modules/python-dotenv/default.nix +++ b/pkgs/development/python-modules/python-dotenv/default.nix @@ -1,29 +1,38 @@ -{ lib, buildPythonPackage, fetchPypi, isPy27 +{ lib +, buildPythonPackage , click +, fetchPypi , ipython -, pytest -, sh -, typing , mock +, pytestCheckHook +, pythonOlder +, sh }: buildPythonPackage rec { pname = "python-dotenv"; version = "0.15.0"; + disabled = pythonOlder "3.5"; src = fetchPypi { inherit pname version; sha256 = "587825ed60b1711daea4832cf37524dfd404325b7db5e25ebe88c495c9f807a0"; }; - propagatedBuildInputs = [ click ] ++ lib.optionals isPy27 [ typing ]; + propagatedBuildInputs = [ click ]; + + checkInputs = [ + ipython + mock + pytestCheckHook + sh + ]; - checkInputs = [ ipython mock pytest sh ]; + disabledTests = [ + "cli" + ]; - # cli tests are impure - checkPhase = '' - pytest tests/ -k 'not cli' - ''; + pythonImportsCheck = [ "dotenv" ]; meta = with lib; { description = "Add .env support to your django/flask apps in development and deployments"; |