mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 07:53:19 +00:00
de863e04a7
Diff: https://github.com/killer0071234/python-zamg/compare/refs/tags/v0.2.3...v0.2.4 Changelog: https://github.com/killer0071234/python-zamg/releases/tag/v0.2.4
52 lines
1010 B
Nix
52 lines
1010 B
Nix
{ lib
|
|
, aiohttp
|
|
, aresponses
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, poetry-core
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "zamg";
|
|
version = "0.2.4";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "killer0071234";
|
|
repo = "python-zamg";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-o1FMhwAHdkcfArT9QRgVi0ieRw4aVdBoqwdlV0sxpQ0=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|