depot/third_party/nixpkgs/pkgs/development/python-modules/zamg/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

46 lines
997 B
Nix

{
lib,
aiohttp,
aresponses,
buildPythonPackage,
fetchFromGitHub,
poetry-core,
pythonOlder,
}:
buildPythonPackage rec {
pname = "zamg";
version = "0.3.6";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "killer0071234";
repo = "python-zamg";
rev = "refs/tags/v${version}";
hash = "sha256-j864+3c0GDDftdLqLDD0hizT54c0IgTjT77jOneXlq0=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace " --cov" ""
'';
nativeBuildInputs = [ poetry-core ];
propagatedBuildInputs = [ aiohttp ];
# Module has no tests
doCheck = false;
pythonImportsCheck = [ "zamg" ];
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 ];
maintainers = with maintainers; [ fab ];
};
}