2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
click,
|
|
|
|
fetchPypi,
|
|
|
|
jinja2,
|
2024-09-19 14:19:46 +00:00
|
|
|
pytestCheckHook,
|
2024-06-05 15:53:02 +00:00
|
|
|
poetry-core,
|
|
|
|
terminaltables,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "envs";
|
2022-04-27 09:35:20 +00:00
|
|
|
version = "1.4";
|
2024-02-29 20:09:43 +00:00
|
|
|
pyproject = true;
|
2022-04-27 09:35:20 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-04-27 09:35:20 +00:00
|
|
|
hash = "sha256-nYQ1xphdHN1oKZ4ExY4r24rmz2ayWWqAeeb5qT8qA5g=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
build-system = [ poetry-core ];
|
2021-06-28 23:13:55 +00:00
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
dependencies = [
|
2021-06-28 23:13:55 +00:00
|
|
|
click
|
|
|
|
jinja2
|
|
|
|
terminaltables
|
|
|
|
];
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2021-06-28 23:13:55 +00:00
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
pytestFlagsArray = [ "envs/tests.py" ];
|
2021-06-28 23:13:55 +00:00
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
disabledTests = [ "test_list_envs" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "envs" ];
|
2022-04-27 09:35:20 +00:00
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
meta = {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Easy access to environment variables from Python";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "envs";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/capless/envs";
|
2024-09-19 14:19:46 +00:00
|
|
|
license = lib.licenses.asl20;
|
|
|
|
maintainers = with lib.maintainers; [ peterhoeg ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|