linux_xanmod: 5.11.14 -> 5.11.15
[NixPkgs.git] / pkgs / development / python-modules / pyhaversion / default.nix
blobade4c01833c36fcc5ba437e3cbed458c2e20b18f
1 { lib
2 , aiohttp
3 , aresponses
4 , async-timeout
5 , awesomeversion
6 , buildPythonPackage
7 , fetchFromGitHub
8 , pythonOlder
9 , pytest-asyncio
10 , pytestCheckHook
13 buildPythonPackage rec {
14   pname = "pyhaversion";
15   version = "21.3.0";
17   # Only 3.8.0 and beyond are supported
18   disabled = pythonOlder "3.8";
20   src = fetchFromGitHub {
21     owner = "ludeeus";
22     repo = pname;
23     rev = version;
24     sha256 = "sha256-2vW4BN5qwJZYQ8FU3bpSA2v1dX6TOhcHDbHRMDPoRAs=";
25   };
27   propagatedBuildInputs = [
28     aiohttp
29     async-timeout
30     awesomeversion
31   ];
33   checkInputs = [
34     aresponses
35     pytest-asyncio
36     pytestCheckHook
37   ];
39   pythonImportsCheck = [ "pyhaversion" ];
41   meta = with lib; {
42     description = "Python module to the newest version number of Home Assistant";
43     homepage = "https://github.com/ludeeus/pyhaversion";
44     changelog = "https://github.com/ludeeus/pyhaversion/releases/tag/${version}";
45     license = with licenses; [ mit ];
46     maintainers = with maintainers; [ makefu ];
47   };