biome: 1.9.2 -> 1.9.3 (#349335)
[NixPkgs.git] / pkgs / development / python-modules / aionut / default.nix
blobcfcefeb33028979712cb8fe396f027469ea53f11
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.3";
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-DCWfa5YfrB7MTf78AeSHDgiZzLNXoiNLnty9a+Sr9tQ=";
23   };
25   postPatch = ''
26     substituteInPlace pyproject.toml \
27       --replace-fail " --cov=aionut --cov-report=term-missing:skip-covered" ""
28   '';
30   build-system = [ 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   };