1{ lib, buildPythonPackage, fetchPypi, isPy27
2, click
3, ipython
4, pytest
5, sh
6, typing
7}:
8
9buildPythonPackage rec {
10 pname = "python-dotenv";
11 version = "0.10.5";
12
13 src = fetchPypi {
14 inherit pname version;
15 sha256 = "1p6xk0f1yj1s4n8wjs9m8xqilc5bcwvfzsy9nv5lrmkhr78bym7j";
16 };
17
18 propagatedBuildInputs = [ click ] ++ lib.optionals isPy27 [ typing ];
19
20 checkInputs = [ ipython pytest sh ];
21
22 # cli tests are impure
23 checkPhase = ''
24 pytest tests/ -k 'not cli'
25 '';
26
27 meta = with lib; {
28 description = "Add .env support to your django/flask apps in development and deployments";
29 homepage = https://github.com/theskumar/python-dotenv;
30 license = licenses.bsdOriginal;
31 maintainers = with maintainers; [ earvstedt ];
32 };
33}