2019-06-25 20:27:50 +02:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, isPy27
|
|
|
|
, click
|
|
|
|
, ipython
|
|
|
|
, pytest
|
|
|
|
, sh
|
|
|
|
, typing
|
2020-06-08 21:19:41 +02:00
|
|
|
, mock
|
2019-06-25 20:27:50 +02:00
|
|
|
}:
|
2019-01-27 15:26:25 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "python-dotenv";
|
2020-07-14 15:05:59 +02:00
|
|
|
version = "0.14.0";
|
2019-01-27 15:26:25 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-07-14 15:05:59 +02:00
|
|
|
sha256 = "0gf3r4xvqk9ai1k3ka8c4dlblqhs7286zbd1b20adn953fdcj44c";
|
2019-01-27 15:26:25 +01:00
|
|
|
};
|
|
|
|
|
2019-06-25 20:27:50 +02:00
|
|
|
propagatedBuildInputs = [ click ] ++ lib.optionals isPy27 [ typing ];
|
|
|
|
|
2020-06-08 21:19:41 +02:00
|
|
|
checkInputs = [ ipython mock pytest sh ];
|
2019-06-25 20:27:50 +02:00
|
|
|
|
|
|
|
# cli tests are impure
|
|
|
|
checkPhase = ''
|
|
|
|
pytest tests/ -k 'not cli'
|
|
|
|
'';
|
2019-01-27 15:26:25 +01:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Add .env support to your django/flask apps in development and deployments";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/theskumar/python-dotenv";
|
2019-01-27 15:26:25 +01:00
|
|
|
license = licenses.bsdOriginal;
|
|
|
|
maintainers = with maintainers; [ earvstedt ];
|
|
|
|
};
|
|
|
|
}
|