python3Packages.xstatic: migrate to pyproject (#532304)

This commit is contained in:
Yohann Boniface
2026-06-16 21:43:54 +00:00
committed by GitHub
@@ -2,26 +2,33 @@
buildPythonPackage,
lib,
fetchPypi,
setuptools,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "xstatic";
version = "1.0.3";
format = "setuptools";
pyproject = true;
__structuredAttrs = true;
src = fetchPypi {
pname = "XStatic";
inherit version;
inherit (finalAttrs) version;
hash = "sha256-QCVEzJ4XlIlEEFTwnIB4BOEV6iRpB96HwDVftPWjEmg=";
};
build-system = [ setuptools ];
# no tests implemented
doCheck = false;
pythonImportsCheck = [ "xstatic" ];
meta = {
homepage = "https://bitbucket.org/thomaswaldmann/xstatic";
homepage = "https://github.com/xstatic-py/xstatic";
description = "Base packaged static files for python";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ makefu ];
};
}
})