c594a97518
GitOrigin-RevId: 301aada7a64812853f2e2634a530ef5d34505048
43 lines
807 B
Nix
43 lines
807 B
Nix
{ lib
|
|
, aiohttp
|
|
, async-timeout
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "aiopvapi";
|
|
version = "2.0.3";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "sander76";
|
|
repo = "aio-powerview-api";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-RBZuYgTySVL1YtyZ4ZJZly2zvWt/5pZ99/aPCwZ91xQ=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
aiohttp
|
|
async-timeout
|
|
];
|
|
|
|
checkInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"aiopvapi"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Python API for the PowerView API";
|
|
homepage = "https://github.com/sander76/aio-powerview-api";
|
|
license = with licenses; [ bsd3 ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|