depot/third_party/nixpkgs/pkgs/development/python-modules/python-dotenv/default.nix
Default email 1ffc76754d Project import generated by Copybara.
GitOrigin-RevId: a5cc7d3197705f933d88e97c0c61849219ce76c1
2020-07-18 18:06:22 +02:00

34 lines
764 B
Nix

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