python3Packages.pyairvisual: 1.0.0 -> 5.0.4
This commit is contained in:
parent
20c1ccf2dc
commit
842c7c5384
@ -1,29 +1,54 @@
|
|||||||
{ lib, buildPythonPackage, isPy3k, fetchFromGitHub, requests
|
{ lib
|
||||||
, requests-mock, pytest
|
, buildPythonPackage
|
||||||
|
, pythonOlder
|
||||||
|
, fetchFromGitHub
|
||||||
|
, poetry
|
||||||
|
, aiohttp
|
||||||
|
, numpy
|
||||||
|
, pysmb
|
||||||
|
, aresponses
|
||||||
|
, asynctest
|
||||||
|
, pytest-aiohttp
|
||||||
|
, pytest-asyncio
|
||||||
|
, pytestCheckHook
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "pyairvisual";
|
pname = "pyairvisual";
|
||||||
version = "1.0.0";
|
version = "5.0.4";
|
||||||
|
format = "pyproject";
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.6";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "bachya";
|
owner = "bachya";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "v${version}";
|
rev = version;
|
||||||
sha256 = "0ng6k07n91k5l68zk3hl4fywb33admp84wqdm20qmmw9yc9c64fd";
|
sha256 = "0z769xrb6w6bhqcq02sjryl1qyvk9dc1xfn06fc3mdqnrbr0xxj3";
|
||||||
};
|
};
|
||||||
|
|
||||||
checkInputs = [ pytest requests-mock ];
|
nativeBuildInputs = [ poetry ];
|
||||||
propagatedBuildInputs = [ requests ];
|
|
||||||
|
|
||||||
checkPhase = ''
|
propagatedBuildInputs = [
|
||||||
py.test tests
|
aiohttp
|
||||||
'';
|
numpy
|
||||||
|
pysmb
|
||||||
|
];
|
||||||
|
|
||||||
disabled = !isPy3k;
|
checkInputs = [
|
||||||
|
aresponses
|
||||||
|
asynctest
|
||||||
|
pytest-aiohttp
|
||||||
|
pytest-asyncio
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
|
pytestFlagsArray = [
|
||||||
|
"tests"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A thin Python wrapper for the AirVisual API";
|
description = "A simple, clean, well-tested Python library for interacting with AirVisual©";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
homepage = "https://github.com/bachya/pyairvisual";
|
homepage = "https://github.com/bachya/pyairvisual";
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user