Merge pull request #147396 from fabaff/bump-luftdaten

python3Packages.luftdaten: 0.6.5 -> 0.7.1
This commit is contained in:
Fabian Affolter 2021-11-26 00:56:04 +01:00 committed by GitHub
commit e78259e45c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,20 +1,41 @@
{ lib, buildPythonPackage, isPy3k, fetchPypi, aiohttp, async-timeout }:
{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, poetry-core
, httpx
, pytest-asyncio
, pytest-httpx
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "luftdaten";
version = "0.6.5";
version = "0.7.1";
format = "pyproject";
disabled = !isPy3k;
disabled = pythonOlder "3.8";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-5SFb+psULyg9UKVY3oJPNLF3TGS/W+Bxoj79iTzReL4=";
src = fetchFromGitHub {
owner = "home-assistant-ecosystem";
repo = "python-luftdaten";
rev = version;
sha256 = "sha256-76Y5TJet0WtzYXuK8Og0rmpsUIlXK7b37oesh+MliU8=";
};
propagatedBuildInputs = [ aiohttp async-timeout ];
nativeBuildInputs = [
poetry-core
];
# No tests implemented
doCheck = false;
propagatedBuildInputs = [
httpx
];
checkInputs = [
pytest-asyncio
pytest-httpx
pytestCheckHook
];
pythonImportsCheck = [ "luftdaten" ];
@ -22,6 +43,6 @@ buildPythonPackage rec {
description = "Python API for interacting with luftdaten.info";
homepage = "https://github.com/home-assistant-ecosystem/python-luftdaten";
license = licenses.mit;
maintainers = with maintainers; [ dotlambda ];
maintainers = with maintainers; [ dotlambda fab ];
};
}