Diff: https://github.com/sloria/environs/compare/refs/tags/14.1.1...refs/tags/14.2.0 Changelog: https://github.com/sloria/environs/blob/14.2.0/CHANGELOG.md
53 lines
1.0 KiB
Nix
53 lines
1.0 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 = "14.2.0";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "sloria";
|
|
repo = "environs";
|
|
tag = version;
|
|
hash = "sha256-2JmoLhKqvX927e64qMIv+YAK7WJR+O/8nKvgaT9AQm8=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|