blob: 94be25991aafd3ee945c8f872eef173fe27381ba (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
hatchling,
aiohttp,
pytestCheckHook,
pytest-asyncio,
pytest-cov-stub,
pytest-mock,
}:
buildPythonPackage (finalAttrs: {
pname = "chess-com-api";
version = "1.1.0";
pyproject = true;
src = fetchFromGitHub {
owner = "Stupidoodle";
repo = "chess-com-api";
tag = "v${finalAttrs.version}";
hash = "sha256-/84rDQwD1Qxl1x7AOF6KFTYqYOdqQyzuhgiz5gArMmo=";
};
build-system = [ hatchling ];
dependencies = [ aiohttp ];
nativeCheckInputs = [
pytestCheckHook
pytest-asyncio
pytest-cov-stub
pytest-mock
];
disabledTestPaths = [
# require network access
"tests/test_client.py"
"tests/test_integration.py"
];
pythonImportsCheck = [ "chess_com_api" ];
meta = {
description = "An async Python wrapper for the Chess.com API";
homepage = "https://github.com/Stupidoodle/chess-com-api";
changelog = "https://github.com/Stupidoodle/chess-com-api/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.jamiemagee ];
};
})
|