mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-03 19:43:30 +00:00
python312Packages.zamg: enable tests (#364458)
This commit is contained in:
commit
6511df8acd
@ -1,9 +1,13 @@
|
||||
{
|
||||
lib,
|
||||
aiohttp,
|
||||
aresponses,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
poetry-core,
|
||||
pytest-asyncio,
|
||||
pytest-cov-stub,
|
||||
pytestCheckHook,
|
||||
pythonOlder,
|
||||
}:
|
||||
|
||||
@ -21,25 +25,30 @@ buildPythonPackage rec {
|
||||
hash = "sha256-j864+3c0GDDftdLqLDD0hizT54c0IgTjT77jOneXlq0=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace " --cov" ""
|
||||
'';
|
||||
build-system = [ poetry-core ];
|
||||
|
||||
nativeBuildInputs = [ poetry-core ];
|
||||
dependencies = [ aiohttp ];
|
||||
|
||||
propagatedBuildInputs = [ aiohttp ];
|
||||
|
||||
# Module has no tests
|
||||
doCheck = false;
|
||||
nativeCheckInputs = [
|
||||
aresponses
|
||||
pytest-asyncio
|
||||
pytest-cov-stub
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "zamg" ];
|
||||
|
||||
disabledTests = [
|
||||
# Tests are outdated
|
||||
"test_update_fail_3"
|
||||
"test_properties_fail_2"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Library to read weather data from ZAMG Austria";
|
||||
homepage = "https://github.com/killer0071234/python-zamg";
|
||||
changelog = "https://github.com/killer0071234/python-zamg/releases/tag/v${version}";
|
||||
license = with licenses; [ mit ];
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user