diff --git a/pkgs/development/python-modules/airly/default.nix b/pkgs/development/python-modules/airly/default.nix index 281c6d9c4c44..2c14b7f96962 100644 --- a/pkgs/development/python-modules/airly/default.nix +++ b/pkgs/development/python-modules/airly/default.nix @@ -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 ]; }; -} +})