3
0
Fork 0
forked from mirrors/nixpkgs

python3Packages.netdata: 0.2.1 -> 1.0.1

This commit is contained in:
Fabian Affolter 2021-11-26 14:38:28 +01:00
parent 9b6078a367
commit f5b1b86934

View file

@ -1,28 +1,47 @@
{ lib
, buildPythonPackage
, fetchPypi
, aiohttp
, async-timeout
, pythonOlder
, fetchFromGitHub
, poetry-core
, httpx
, pytest-asyncio
, pytest-httpx
, pytestCheckHook
, yarl
}:
buildPythonPackage rec {
pname = "netdata";
version = "0.2.1";
version = "1.0.1";
format = "pyproject";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-oGOT4RvftI/2Ri2icM/AtglNZXt10jkFh/rlr6A46YE=";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "home-assistant-ecosystem";
repo = "python-netdata";
rev = version;
sha256 = "sha256-4+cTIqytHrCPG7lUZv1IhL7Bk5GlTEveQTtuCkFIepo=";
};
propagatedBuildInputs = [
aiohttp
async-timeout
nativeBuildInputs = [
poetry-core
];
# no tests are present
doCheck = false;
propagatedBuildInputs = [
httpx
yarl
];
pythonImportsCheck = [ "netdata" ];
checkInputs = [
pytest-asyncio
pytest-httpx
pytestCheckHook
];
pythonImportsCheck = [
"netdata"
];
meta = with lib; {
description = "Python API for interacting with Netdata";