python3Packages.twentemilieu: 2.2.1 -> 3.0.0
Changelog: https://github.com/frenck/python-twentemilieu/releases/tag/v3.0.0
This commit is contained in:
@@ -1,32 +1,35 @@
|
||||
{
|
||||
lib,
|
||||
aiohttp,
|
||||
aresponses,
|
||||
aioresponses,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
poetry-core,
|
||||
pytest-asyncio,
|
||||
pytest-cov-stub,
|
||||
pytestCheckHook,
|
||||
rich,
|
||||
syrupy,
|
||||
typer,
|
||||
yarl,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
buildPythonPackage (finalAttrs: {
|
||||
pname = "twentemilieu";
|
||||
version = "2.2.1";
|
||||
version = "3.0.0";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "frenck";
|
||||
repo = "python-twentemilieu";
|
||||
tag = "v${version}";
|
||||
hash = "sha256-N6XSf212orMf3vqIjBzu+4fpKX7kFinH180lCWXtjzc=";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-RSUKluCE66oA0QbPlJ3niIuewvBxPmj18ZCUBNCFr4o=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
# Upstream is creating GitHub releases without version
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace '"0.0.0"' '"${version}"'
|
||||
--replace '"0.0.0"' '"${finalAttrs.version}"'
|
||||
'';
|
||||
|
||||
build-system = [ poetry-core ];
|
||||
@@ -36,20 +39,29 @@ buildPythonPackage rec {
|
||||
yarl
|
||||
];
|
||||
|
||||
optional-dependencies = {
|
||||
cli = [
|
||||
rich
|
||||
typer
|
||||
];
|
||||
};
|
||||
|
||||
nativeCheckInputs = [
|
||||
aresponses
|
||||
aioresponses
|
||||
pytest-asyncio
|
||||
pytest-cov-stub
|
||||
pytestCheckHook
|
||||
];
|
||||
syrupy
|
||||
]
|
||||
++ lib.flatten (builtins.attrValues finalAttrs.passthru.optional-dependencies);
|
||||
|
||||
pythonImportsCheck = [ "twentemilieu" ];
|
||||
|
||||
meta = {
|
||||
description = "Python client for Twente Milieu";
|
||||
homepage = "https://github.com/frenck/python-twentemilieu";
|
||||
changelog = "https://github.com/frenck/python-twentemilieu/releases/tag/v${version}";
|
||||
changelog = "https://github.com/frenck/python-twentemilieu/releases/tag/${finalAttrs.src.tag}";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ fab ];
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user