Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / aionut / default.nix
blob8c9b8038ce998f8d8b227258794edd3165dbe7c8
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   poetry-core,
6   pytest-asyncio,
7   pytestCheckHook,
8   pythonOlder,
9 }:
11 buildPythonPackage rec {
12   pname = "aionut";
13   version = "4.3.2";
14   pyproject = true;
16   disabled = pythonOlder "3.11";
18   src = fetchFromGitHub {
19     owner = "bdraco";
20     repo = "aionut";
21     rev = "refs/tags/v${version}";
22     hash = "sha256-QehVC/6RbWp8KnOuVtLFkK8/STTgHXkXmFbSmzu9z7w=";
23   };
25   postPatch = ''
26     substituteInPlace pyproject.toml \
27       --replace-fail " --cov=aionut --cov-report=term-missing:skip-covered" ""
28   '';
30   nativeBuildInputs = [ poetry-core ];
32   nativeCheckInputs = [
33     pytest-asyncio
34     pytestCheckHook
35   ];
37   pythonImportsCheck = [ "aionut" ];
39   meta = with lib; {
40     description = "Asyncio Network UPS Tools";
41     homepage = "https://github.com/bdraco/aionut";
42     changelog = "https://github.com/bdraco/aionut/blob/${version}/CHANGELOG.md";
43     license = licenses.asl20;
44     maintainers = with maintainers; [ fab ];
45   };