2020-04-24 23:36:52 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, isPy27
|
|
|
|
, click
|
|
|
|
, ipython
|
|
|
|
, pytest
|
|
|
|
, sh
|
|
|
|
, typing
|
2020-06-15 15:56:04 +00:00
|
|
|
, mock
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "python-dotenv";
|
2020-12-07 07:45:13 +00:00
|
|
|
version = "0.15.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-12-07 07:45:13 +00:00
|
|
|
sha256 = "587825ed60b1711daea4832cf37524dfd404325b7db5e25ebe88c495c9f807a0";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ click ] ++ lib.optionals isPy27 [ typing ];
|
|
|
|
|
2020-06-15 15:56:04 +00:00
|
|
|
checkInputs = [ ipython mock pytest sh ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# 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 ];
|
|
|
|
};
|
|
|
|
}
|