1{
2 buildPythonPackage,
3 fetchFromGitea,
4 lib,
5 poetry-core,
6 pycountry,
7 pyrate-limiter,
8 requests,
9 typing-extensions,
10}:
11
12buildPythonPackage rec {
13 pname = "psnawp";
14 version = "3.0.0";
15 pyproject = true;
16
17 src = fetchFromGitea {
18 domain = "codeberg.org";
19 owner = "YoshikageKira";
20 repo = "psnawp";
21 tag = "v${version}";
22 hash = "sha256-JS8VGwIsCr21rwjXCRUXsoVHfFyLTZtgp+ZJcXWCCsQ=";
23 };
24
25 build-system = [ poetry-core ];
26
27 dependencies = [
28 pycountry
29 pyrate-limiter
30 requests
31 typing-extensions
32 ];
33
34 pythonImportsCheck = [ "psnawp_api" ];
35
36 # tests access the actual PlayStation Network API
37 doCheck = false;
38
39 meta = {
40 changelog = "https://codeberg.org/YoshikageKira/psnawp/releases/tag/${src.tag}";
41 description = "Python API Wrapper for PlayStation Network API";
42 homepage = "https://codeberg.org/YoshikageKira/psnawp";
43 license = lib.licenses.mit;
44 maintainers = with lib.maintainers; [ dotlambda ];
45 };
46}