nixpkgs/pkgs/development/python-modules/aioqsw/default.nix
2022-05-27 10:51:44 +00:00

41 lines
754 B
Nix

{ lib
, aiohttp
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "aioqsw";
version = "0.1.0";
format = "setuptools";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "Noltari";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-/4d7FXz0LBKKnJemmhOXZrnRrVuFaKojLaUn0SXcFaw=";
};
propagatedBuildInputs = [
aiohttp
];
# Module has no tests
doCheck = false;
pythonImportsCheck = [
"aioqsw"
];
meta = with lib; {
description = "Library to fetch data from QNAP QSW switches";
homepage = "https://github.com/Noltari/aioqsw";
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ fab ];
};
}