depot/third_party/nixpkgs/pkgs/development/python-modules/python-dotenv/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

33 lines
752 B
Nix

{ lib, buildPythonPackage, fetchPypi, isPy27
, click
, ipython
, pytest
, sh
, typing
}:
buildPythonPackage rec {
pname = "python-dotenv";
version = "0.10.5";
src = fetchPypi {
inherit pname version;
sha256 = "1p6xk0f1yj1s4n8wjs9m8xqilc5bcwvfzsy9nv5lrmkhr78bym7j";
};
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 ];
};
}