2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
dj-database-url,
|
|
|
|
dj-email-url,
|
|
|
|
django-cache-url,
|
|
|
|
fetchFromGitHub,
|
|
|
|
flit-core,
|
|
|
|
marshmallow,
|
|
|
|
pytestCheckHook,
|
|
|
|
python-dotenv,
|
|
|
|
pythonOlder,
|
2021-10-17 09:34:42 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "environs";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "11.0.0";
|
2024-01-02 11:29:13 +00:00
|
|
|
pyproject = true;
|
2021-10-17 09:34:42 +00:00
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2021-10-17 09:34:42 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "sloria";
|
2024-01-02 11:29:13 +00:00
|
|
|
repo = "environs";
|
|
|
|
rev = "refs/tags/${version}";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-9BqIlA2HcUlBiyTB7zxaLO0CzBRkx5mKMMdhvdr2Uqg=";
|
2021-10-17 09:34:42 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ flit-core ];
|
2024-01-02 11:29:13 +00:00
|
|
|
|
2021-10-17 09:34:42 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
marshmallow
|
|
|
|
python-dotenv
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-10-17 09:34:42 +00:00
|
|
|
dj-database-url
|
|
|
|
dj-email-url
|
|
|
|
django-cache-url
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "environs" ];
|
2021-10-17 09:34:42 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python modle for environment variable parsing";
|
|
|
|
homepage = "https://github.com/sloria/environs";
|
2024-01-02 11:29:13 +00:00
|
|
|
changelog = "https://github.com/sloria/environs/blob/${version}/CHANGELOG.md";
|
2021-10-17 09:34:42 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|