summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/python-dotenv
diff options
context:
space:
mode:
authorJonathan Ringer <jonringer117@gmail.com>2019-06-25 11:27:50 -0700
committerJonathan Ringer <jonringer117@gmail.com>2019-06-25 11:28:58 -0700
commit080b2fb7305534e365861b4b69bd8d497f5cbe2a (patch)
tree8d4bb6a5ae4ac7050fa9b001e8d5960c3cc4607d /pkgs/development/python-modules/python-dotenv
parentb88ac050bda46b630b85fe91f273f966199fbca3 (diff)
pythonPackages.python-dotenv: 0.10.2 -> 0.10.3
Diffstat (limited to 'pkgs/development/python-modules/python-dotenv')
-rw-r--r--pkgs/development/python-modules/python-dotenv/default.nix21
1 files changed, 17 insertions, 4 deletions
diff --git a/pkgs/development/python-modules/python-dotenv/default.nix b/pkgs/development/python-modules/python-dotenv/default.nix
index b3a9d666262c..ba74817a63fd 100644
--- a/pkgs/development/python-modules/python-dotenv/default.nix
+++ b/pkgs/development/python-modules/python-dotenv/default.nix
@@ -1,15 +1,28 @@
-{ lib, buildPythonPackage, fetchPypi, click, ipython }:
+{ lib, buildPythonPackage, fetchPypi, isPy27
+, click
+, ipython
+, pytest
+, sh
+, typing
+}:
buildPythonPackage rec {
pname = "python-dotenv";
- version = "0.10.2";
+ version = "0.10.3";
src = fetchPypi {
inherit pname version;
- sha256 = "6640acd76e6cab84648e4fec16c9d19de6700971f9d91d045e7120622167bfda";
+ sha256 = "0i25gh8wi87l4g0iflp81rlgmps4cdmp90hwypalp7gcbwfxfmzi";
};
- checkInputs = [ click ipython ];
+ propagatedBuildInputs = [ click ] ++ lib.optionals isPy27 [ typing ];
+
+ checkInputs = [ ipython pytest sh ];
+
+ # cli tests are impure
+ checkPhase = ''
+ pytest tests/ -k 'not cli'
+ '';
meta = with lib; {
description = "Add .env support to your django/flask apps in development and deployments";