python3Packages.wcag-contrast-ratio: migrate to pyproject (#534330)

This commit is contained in:
Nick Cao
2026-06-23 20:16:33 +00:00
committed by GitHub
@@ -2,20 +2,25 @@
lib,
buildPythonPackage,
fetchPypi,
setuptools,
hypothesis,
pytestCheckHook,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "wcag-contrast-ratio";
version = "0.9";
format = "setuptools";
pyproject = true;
__structuredAttrs = true;
src = fetchPypi {
inherit pname version;
inherit (finalAttrs) pname version;
hash = "sha256-aRkrjlwKfQ3F/xGH7rPjmBQWM6S95RxpyH9Y/oftNhw=";
};
build-system = [ setuptools ];
nativeCheckInputs = [
hypothesis
pytestCheckHook
@@ -31,4 +36,4 @@ buildPythonPackage rec {
license = lib.licenses.mit;
maintainers = [ ];
};
}
})