nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 poetry-core,
6 pytest-asyncio,
7 pytest-cov-stub,
8 pytestCheckHook,
9 tzdata,
10}:
11
12buildPythonPackage rec {
13 pname = "aiozoneinfo";
14 version = "0.2.3";
15 pyproject = true;
16
17 src = fetchFromGitHub {
18 owner = "bluetooth-devices";
19 repo = "aiozoneinfo";
20 tag = "v${version}";
21 hash = "sha256-7qd6Yk/K4BLocu8eQK0hLaw2r1jhWIHBr9W4KsAvmx8=";
22 };
23
24 build-system = [ poetry-core ];
25
26 dependencies = [ tzdata ];
27
28 nativeCheckInputs = [
29 pytest-asyncio
30 pytest-cov-stub
31 pytestCheckHook
32 ];
33
34 pythonImportsCheck = [ "aiozoneinfo" ];
35
36 meta = {
37 description = "Tools to fetch zoneinfo with asyncio";
38 homepage = "https://github.com/bluetooth-devices/aiozoneinfo";
39 changelog = "https://github.com/bluetooth-devices/aiozoneinfo/blob/${version}/CHANGELOG.md";
40 license = lib.licenses.asl20;
41 maintainers = with lib.maintainers; [ fab ];
42 };
43}