nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5
6 # build-system
7 poetry-core,
8
9 # optional-dependencies
10 furo,
11 myst-parser,
12 sphinx,
13 sphinxHook,
14
15 # tests
16 pytest-asyncio_0,
17 pytest-cov-stub,
18 pytestCheckHook,
19}:
20
21buildPythonPackage rec {
22 pname = "aiohappyeyeballs";
23 version = "2.6.1";
24 pyproject = true;
25
26 src = fetchFromGitHub {
27 owner = "bdraco";
28 repo = "aiohappyeyeballs";
29 tag = "v${version}";
30 hash = "sha256-qqe/h633uEbJPpdsuCzZKW86Z6BQUmPdCju1vg7OLXc=";
31 };
32
33 outputs = [
34 "out"
35 "doc"
36 ];
37
38 build-system = [ poetry-core ] ++ optional-dependencies.docs;
39
40 optional-dependencies = {
41 docs = [
42 furo
43 myst-parser
44 sphinx
45 sphinxHook
46 ];
47 };
48
49 nativeCheckInputs = [
50 pytest-asyncio_0
51 pytest-cov-stub
52 pytestCheckHook
53 ];
54
55 pythonImportsCheck = [ "aiohappyeyeballs" ];
56
57 meta = {
58 description = "Happy Eyeballs for pre-resolved hosts";
59 homepage = "https://github.com/bdraco/aiohappyeyeballs";
60 changelog = "https://github.com/bdraco/aiohappyeyeballs/blob/v${version}/CHANGELOG.md";
61 license = lib.licenses.psfl;
62 maintainers = with lib.maintainers; [
63 fab
64 hexa
65 ];
66 };
67}