Merge pull request #322249 from fabaff/aiosteamist-bump

python312Packages.aiosteamist: 0.3.2 -> 1.0.0
This commit is contained in:
Fabian Affolter 2024-06-24 23:53:46 +02:00 committed by GitHub
commit 771302c608
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -4,46 +4,48 @@
buildPythonPackage,
fetchFromGitHub,
poetry-core,
pytestCheckHook,
pythonOlder,
xmltodict,
}:
buildPythonPackage rec {
pname = "aiosteamist";
version = "0.3.2";
format = "pyproject";
version = "1.0.0";
pyproject = true;
disabled = pythonOlder "3.7";
disabled = pythonOlder "3.10";
src = fetchFromGitHub {
owner = "bdraco";
repo = pname;
rev = version;
hash = "sha256-IKrAJ4QDcYJRO4hcomL9FRs8hJ3k7SgRgK4H1b8SxIM=";
repo = "aiosteamist";
rev = "refs/tags/v${version}";
hash = "sha256-vqCcQDUMFFhIOoiER5TMOxJPY7HYFS4K1fuu/1IqP44=";
};
nativeBuildInputs = [ poetry-core ];
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail "--cov=aiosteamist" ""
'';
propagatedBuildInputs = [
build-system = [ poetry-core ];
dependencies = [
aiohttp
xmltodict
];
postPatch = ''
substituteInPlace pyproject.toml \
--replace "--cov=aiosteamist" "" \
--replace 'xmltodict = "^0.12.0"' 'xmltodict = "*"'
'';
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [ "aiosteamist" ];
# Modules doesn't have test suite
doCheck = false;
meta = with lib; {
description = "Module to control Steamist steam systems";
homepage = "https://github.com/bdraco/aiosteamist";
license = with licenses; [ asl20 ];
changelog = "https://github.com/bdraco/aiosteamist/releases/tag/v${version}";
license = licenses.asl20;
maintainers = with maintainers; [ fab ];
};
}