1{
2 lib,
3 buildPythonPackage,
4 click,
5 fetchFromGitHub,
6 ipython,
7 mock,
8 pytestCheckHook,
9 setuptools,
10 sh,
11}:
12
13buildPythonPackage rec {
14 pname = "python-dotenv";
15 version = "1.1.1";
16 pyproject = true;
17
18 src = fetchFromGitHub {
19 owner = "theskumar";
20 repo = "python-dotenv";
21 tag = "v${version}";
22 hash = "sha256-GeN6/pnqhm7TTP+H9bKhJat6EwEl2EPl46mNSJWwFKk=";
23 };
24
25 build-system = [ setuptools ];
26
27 dependencies = [ click ];
28
29 nativeCheckInputs = [
30 ipython
31 mock
32 pytestCheckHook
33 sh
34 ];
35
36 disabledTests = [ "cli" ];
37
38 pythonImportsCheck = [ "dotenv" ];
39
40 meta = with lib; {
41 description = "Add .env support to your django/flask apps in development and deployments";
42 mainProgram = "dotenv";
43 homepage = "https://github.com/theskumar/python-dotenv";
44 license = licenses.bsdOriginal;
45 maintainers = with maintainers; [ erikarvstedt ];
46 };
47}