forked from mirrors/nixpkgs
44 lines
801 B
Nix
44 lines
801 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, click
|
|
, fetchPypi
|
|
, ipython
|
|
, mock
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, sh
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "python-dotenv";
|
|
version = "0.17.1";
|
|
disabled = pythonOlder "3.5";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "b1ae5e9643d5ed987fc57cc2583021e38db531946518130777734f9589b3141f";
|
|
};
|
|
|
|
propagatedBuildInputs = [ click ];
|
|
|
|
checkInputs = [
|
|
ipython
|
|
mock
|
|
pytestCheckHook
|
|
sh
|
|
];
|
|
|
|
disabledTests = [
|
|
"cli"
|
|
];
|
|
|
|
pythonImportsCheck = [ "dotenv" ];
|
|
|
|
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 ];
|
|
};
|
|
}
|