587713944a
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
55 lines
1 KiB
Nix
55 lines
1 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, dj-database-url
|
|
, dj-email-url
|
|
, django-cache-url
|
|
, fetchFromGitHub
|
|
, flit-core
|
|
, marshmallow
|
|
, pytestCheckHook
|
|
, python-dotenv
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "environs";
|
|
version = "11.0.0";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "sloria";
|
|
repo = "environs";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-9BqIlA2HcUlBiyTB7zxaLO0CzBRkx5mKMMdhvdr2Uqg=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
flit-core
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
marshmallow
|
|
python-dotenv
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
dj-database-url
|
|
dj-email-url
|
|
django-cache-url
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"environs"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Python modle for environment variable parsing";
|
|
homepage = "https://github.com/sloria/environs";
|
|
changelog = "https://github.com/sloria/environs/blob/${version}/CHANGELOG.md";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|