1{ lib
2, buildPythonPackage
3, click
4, fetchPypi
5, ipython
6, mock
7, pytestCheckHook
8, pythonOlder
9, sh
10}:
11
12buildPythonPackage rec {
13 pname = "python-dotenv";
14 version = "0.21.0";
15 disabled = pythonOlder "3.5";
16
17 src = fetchPypi {
18 inherit pname version;
19 sha256 = "sha256-t30IJ0Y549NBRd+mxwCOZt8PBLe+enX9DVKSwZHXkEU=";
20 };
21
22 propagatedBuildInputs = [ click ];
23
24 checkInputs = [
25 ipython
26 mock
27 pytestCheckHook
28 sh
29 ];
30
31 disabledTests = [
32 "cli"
33 ];
34
35 pythonImportsCheck = [ "dotenv" ];
36
37 meta = with lib; {
38 description = "Add .env support to your django/flask apps in development and deployments";
39 homepage = "https://github.com/theskumar/python-dotenv";
40 license = licenses.bsdOriginal;
41 maintainers = with maintainers; [ erikarvstedt ];
42 };
43}