mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-08 06:13:55 +00:00
43 lines
924 B
Nix
43 lines
924 B
Nix
{
|
|
lib,
|
|
aiohttp,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pytestCheckHook,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "aiopvapi";
|
|
version = "3.3.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "sander76";
|
|
repo = "aio-powerview-api";
|
|
tag = "v${version}";
|
|
hash = "sha256-yystaH2HRsJoYh2aTpOBA7DLiC2xwpBUccHwmJ0FlaY=";
|
|
};
|
|
|
|
patches = [
|
|
# https://github.com/sander76/aio-powerview-api/pull/46
|
|
./fix-tests.patch
|
|
];
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [ aiohttp ];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "aiopvapi" ];
|
|
|
|
meta = {
|
|
description = "Python API for the PowerView API";
|
|
homepage = "https://github.com/sander76/aio-powerview-api";
|
|
changelog = "https://github.com/sander76/aio-powerview-api/releases/tag/${src.tag}";
|
|
license = lib.licenses.bsd3;
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
};
|
|
}
|