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