1{
2 buildPythonPackage,
3 fetchFromGitHub,
4 lib,
5 pytestCheckHook,
6 requests,
7 setuptools,
8}:
9
10buildPythonPackage rec {
11 pname = "py-dactyl";
12 version = "2.0.5";
13 pyproject = true;
14
15 src = fetchFromGitHub {
16 owner = "iamkubi";
17 repo = "pydactyl";
18 tag = "v${version}";
19 hash = "sha256-yw5S4I4mtb9URnZ1So1nlZi4v7y0Nz4msx+8SwSi8N4=";
20 };
21
22 build-system = [ setuptools ];
23
24 dependencies = [
25 requests
26 ];
27
28 pythonImportsCheck = [ "pydactyl" ];
29
30 nativeCheckInputs = [
31 pytestCheckHook
32 ];
33
34 disabledTests = [
35 # upstream's tests are not fully maintained
36 "test_get_file_contents"
37 "test_paginated_response_multipage_iterator"
38 "test_pterodactyl_client_debug_param"
39 ];
40
41 meta = {
42 changelog = "https://github.com/iamkubi/pydactyl/releases/tag/${src.tag}";
43 description = "Python wrapper for the Pterodactyl Panel API";
44 homepage = "https://github.com/iamkubi/pydactyl";
45 license = lib.licenses.mit;
46 maintainers = with lib.maintainers; [ dotlambda ];
47 };
48}