python3Packages.environs: migrate to finalAttrs

This commit is contained in:
Fabian Affolter
2026-02-21 09:41:41 +01:00
parent 38aff97d90
commit 03b38335ba
@@ -11,7 +11,7 @@
python-dotenv,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "environs";
version = "14.6.0";
pyproject = true;
@@ -19,13 +19,13 @@ buildPythonPackage rec {
src = fetchFromGitHub {
owner = "sloria";
repo = "environs";
tag = version;
tag = finalAttrs.version;
hash = "sha256-TX8C3KIuvAkC+ArGFz9FXyqxd9pfTgmMqnLuYNIlA4o=";
};
nativeBuildInputs = [ flit-core ];
build-system = [ flit-core ];
propagatedBuildInputs = [
dependencies = [
marshmallow
python-dotenv
];
@@ -40,10 +40,10 @@ buildPythonPackage rec {
pythonImportsCheck = [ "environs" ];
meta = {
description = "Python modle for environment variable parsing";
description = "Python module for environment variable parsing";
homepage = "https://github.com/sloria/environs";
changelog = "https://github.com/sloria/environs/blob/${version}/CHANGELOG.md";
changelog = "https://github.com/sloria/environs/blob/${finalAttrs.src.tag}/CHANGELOG.md";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
}
})