python3Packages.aiopyarr: migration to pyproject (#526537)
This commit is contained in:
@@ -8,26 +8,29 @@
|
||||
orjson,
|
||||
pytest-asyncio,
|
||||
pytestCheckHook,
|
||||
setuptools,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
buildPythonPackage (finalAttrs: {
|
||||
pname = "aiopyarr";
|
||||
version = "23.4.0";
|
||||
format = "setuptools";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "tkdrob";
|
||||
repo = "aiopyarr";
|
||||
tag = version;
|
||||
tag = finalAttrs.version;
|
||||
hash = "sha256-CzNB6ymvDTktiOGdcdCvWLVQ3mKmbdMpc/vezSXCpG4=";
|
||||
};
|
||||
|
||||
build-system = [ setuptools ];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace 'version="master"' 'version="${version}"'
|
||||
--replace-fail 'version="master"' 'version="${finalAttrs.version}"'
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [
|
||||
dependencies = [
|
||||
aiohttp
|
||||
ciso8601
|
||||
orjson
|
||||
@@ -44,8 +47,8 @@ buildPythonPackage rec {
|
||||
meta = {
|
||||
description = "Python API client for Lidarr/Radarr/Readarr/Sonarr";
|
||||
homepage = "https://github.com/tkdrob/aiopyarr";
|
||||
changelog = "https://github.com/tkdrob/aiopyarr/releases/tag/${version}";
|
||||
changelog = "https://github.com/tkdrob/aiopyarr/releases/tag/${finalAttrs.version}";
|
||||
license = with lib.licenses; [ mit ];
|
||||
maintainers = with lib.maintainers; [ fab ];
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user