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 = "1.0.0";
15 disabled = pythonOlder "3.5";
16
17 src = fetchPypi {
18 inherit pname version;
19 hash = "sha256-qN+WA0qubS1QpOvoIWMmxhw+tkg2d2UE/MpBDlk3o7o=";
20 };
21
22 propagatedBuildInputs = [ click ];
23
24 nativeCheckInputs = [
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}