depot/third_party/nixpkgs/pkgs/development/python-modules/python-dotenv/default.nix
Default email 2ce89355c3 Project import generated by Copybara.
GitOrigin-RevId: 22a81aa5fc15b2d41b12f7160a71cd4a9f3c3fa1
2020-06-15 17:56:04 +02:00

34 lines
776 B
Nix

{ lib, buildPythonPackage, fetchPypi, isPy27
, click
, ipython
, pytest
, sh
, typing
, mock
}:
buildPythonPackage rec {
pname = "python-dotenv";
version = "0.13.0";
src = fetchPypi {
inherit pname version;
sha256 = "3b9909bc96b0edc6b01586e1eed05e71174ef4e04c71da5786370cebea53ad74";
};
propagatedBuildInputs = [ click ] ++ lib.optionals isPy27 [ typing ];
checkInputs = [ ipython mock 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 ];
};
}