567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
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.5.0";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "sloria";
|
|
repo = "environs";
|
|
tag = version;
|
|
hash = "sha256-g9n4GuVSHB2VourVYlzp3zKO7MnJK4IAakbYV5tM8Uc=";
|
|
};
|
|
|
|
nativeBuildInputs = [ flit-core ];
|
|
|
|
propagatedBuildInputs = [
|
|
marshmallow
|
|
python-dotenv
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
dj-database-url
|
|
dj-email-url
|
|
django-cache-url
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "environs" ];
|
|
|
|
meta = {
|
|
description = "Python modle for environment variable parsing";
|
|
homepage = "https://github.com/sloria/environs";
|
|
changelog = "https://github.com/sloria/environs/blob/${version}/CHANGELOG.md";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
};
|
|
}
|