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