Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 aiohttp, 4 aresponses, 5 buildPythonPackage, 6 fetchFromGitHub, 7 poetry-core, 8 pythonOlder, 9}: 10 11buildPythonPackage rec { 12 pname = "zamg"; 13 version = "0.3.6"; 14 pyproject = true; 15 16 disabled = pythonOlder "3.8"; 17 18 src = fetchFromGitHub { 19 owner = "killer0071234"; 20 repo = "python-zamg"; 21 rev = "refs/tags/v${version}"; 22 hash = "sha256-j864+3c0GDDftdLqLDD0hizT54c0IgTjT77jOneXlq0="; 23 }; 24 25 postPatch = '' 26 substituteInPlace pyproject.toml \ 27 --replace " --cov" "" 28 ''; 29 30 nativeBuildInputs = [ poetry-core ]; 31 32 propagatedBuildInputs = [ aiohttp ]; 33 34 # Module has no tests 35 doCheck = false; 36 37 pythonImportsCheck = [ "zamg" ]; 38 39 meta = with lib; { 40 description = "Library to read weather data from ZAMG Austria"; 41 homepage = "https://github.com/killer0071234/python-zamg"; 42 changelog = "https://github.com/killer0071234/python-zamg/releases/tag/v${version}"; 43 license = with licenses; [ mit ]; 44 maintainers = with maintainers; [ fab ]; 45 }; 46}