mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-10-07 04:57:26 +03:00
Merge pull request #322249 from fabaff/aiosteamist-bump
python312Packages.aiosteamist: 0.3.2 -> 1.0.0
This commit is contained in:
commit
771302c608
@ -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 ];
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user