Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / aioqsw / default.nix
blob7e62d1f2089d1b03780d8151a39cfb1f5d088fc0
1 { lib
2 , aiohttp
3 , buildPythonPackage
4 , fetchFromGitHub
5 , pytestCheckHook
6 , pythonOlder
7 , setuptools
8 , wheel
9 }:
11 buildPythonPackage rec {
12   pname = "aioqsw";
13   version = "0.3.5";
14   format = "pyproject";
16   disabled = pythonOlder "3.11";
18   src = fetchFromGitHub {
19     owner = "Noltari";
20     repo = pname;
21     rev = "refs/tags/${version}";
22     hash = "sha256-kSwTHwVSMGyXA0SF74f9gyBN82XhdjdN6DWrQV0PiaU=";
23   };
25   nativeBuildInputs = [
26     setuptools
27     wheel
28   ];
30   propagatedBuildInputs = [
31     aiohttp
32   ];
34   # Module has no tests
35   doCheck = false;
37   pythonImportsCheck = [
38     "aioqsw"
39   ];
41   meta = with lib; {
42     description = "Library to fetch data from QNAP QSW switches";
43     homepage = "https://github.com/Noltari/aioqsw";
44     changelog = "https://github.com/Noltari/aioqsw/releases/tag/${version}";
45     license = with licenses; [ asl20 ];
46     maintainers = with maintainers; [ fab ];
47   };