Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{
2 lib,
3 async-timeout,
4 buildPythonPackage,
5 fetchFromGitHub,
6 pytestCheckHook,
7 pytest-cov-stub,
8 tenacity,
9}:
10
11buildPythonPackage rec {
12 pname = "aiokef";
13 version = "0.2.17";
14 format = "setuptools";
15
16 src = fetchFromGitHub {
17 owner = "basnijholt";
18 repo = "aiokef";
19 rev = "v${version}";
20 sha256 = "0ms0dwrpj80w55svcppbnp7vyl5ipnjfp1c436k5c7pph4q5pxk9";
21 };
22
23 postPatch = ''
24 substituteInPlace tox.ini \
25 --replace "--mypy" ""
26 '';
27
28 propagatedBuildInputs = [
29 async-timeout
30 tenacity
31 ];
32
33 nativeCheckInputs = [
34 pytestCheckHook
35 pytest-cov-stub
36 ];
37
38 enabledTestPaths = [ "tests" ];
39 pythonImportsCheck = [ "aiokef" ];
40
41 meta = {
42 description = "Python API for KEF speakers";
43 homepage = "https://github.com/basnijholt/aiokef";
44 license = with lib.licenses; [ mit ];
45 maintainers = with lib.maintainers; [ fab ];
46 };
47}