blob: f43d8d0575b9bcddbc816330d8b76d7e6610ee8c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
{ lib, buildPythonPackage, fetchPypi, isPy27
, click
, ipython
, pytest
, sh
, typing
}:
buildPythonPackage rec {
pname = "python-dotenv";
version = "0.10.4";
src = fetchPypi {
inherit pname version;
sha256 = "16s2x5ghrhz9ljm6h3y0pbwh97558vbs7l0yiicag4s0xyn0nzq0";
};
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";
homepage = https://github.com/theskumar/python-dotenv;
license = licenses.bsdOriginal;
maintainers = with maintainers; [ earvstedt ];
};
}
|