mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-18 06:31:15 +00:00
python3Packages.airly: migrate to pyproject (#542073)
This commit is contained in:
@@ -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 ];
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user