python3Packages.airly: migrate to pyproject (#542073)

This commit is contained in:
Yohann Boniface
2026-07-15 23:00:35 +00:00
committed by GitHub

View File

@@ -5,23 +5,28 @@
aiounittest,
buildPythonPackage,
fetchFromGitHub,
setuptools,
pytestCheckHook,
pythonOlder,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "airly";
version = "1.1.0";
format = "setuptools";
pyproject = true;
__structuredAttrs = true;
src = fetchFromGitHub {
owner = "ak-ambi";
repo = "python-airly";
rev = "v${version}";
tag = "v${finalAttrs.version}";
hash = "sha256-weliT/FYnRX+pzVAyRWFly7lfj2z7P+hpq5SIhyIgmI=";
};
propagatedBuildInputs = [ aiohttp ];
build-system = [ setuptools ];
dependencies = [ aiohttp ];
# aiounittest is not supported on 3.12
doCheck = pythonOlder "3.12";
@@ -36,11 +41,6 @@ buildPythonPackage rec {
cd tests
'';
disabledTests = [
"InstallationsLoaderTestCase"
"MeasurementsSessionTestCase"
];
pythonImportsCheck = [ "airly" ];
meta = {
@@ -49,4 +49,4 @@ buildPythonPackage rec {
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
}
})