python3Packages.flask-expects-json: migrate to pyproject, enable __structuredAttrs, use finalAttrs (#535276)

This commit is contained in:
Peder Bergebakken Sundt
2026-06-30 19:28:35 +00:00
committed by GitHub
@@ -2,24 +2,29 @@
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
flask,
jsonschema,
pytestCheckHook,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "flask-expects-json";
version = "1.7.0";
format = "setuptools";
pyproject = true;
__structuredAttrs = true;
src = fetchFromGitHub {
owner = "Fischerfredl";
repo = "flask-expects-json";
rev = version;
rev = finalAttrs.version;
hash = "sha256-CUxuwqjjAb9Fy6xWtX1WtSANYaYr5//vY8k89KghYoQ=";
};
propagatedBuildInputs = [
build-system = [ setuptools ];
dependencies = [
flask
jsonschema
]
@@ -48,4 +53,4 @@ buildPythonPackage rec {
license = lib.licenses.mit;
maintainers = [ ];
};
}
})