1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 poetry-core,
6 pycryptodomex,
7 pythonOlder,
8 pythonRelaxDepsHook,
9 requests,
10}:
11
12buildPythonPackage rec {
13 pname = "gpsoauth";
14 version = "1.1.0";
15 pyproject = true;
16
17 disabled = pythonOlder "3.8";
18
19 src = fetchPypi {
20 inherit pname version;
21 hash = "sha256-BA+2aFxpFpi6cWGl4yepba7s7BmZ1ijvSBhtS23v3QM=";
22 };
23
24 nativeBuildInputs = [
25 pythonRelaxDepsHook
26 poetry-core
27 ];
28
29 propagatedBuildInputs = [
30 pycryptodomex
31 requests
32 ];
33
34 pythonRelaxDeps = [ "urllib3" ];
35
36 # upstream tests are not very comprehensive
37 doCheck = false;
38
39 pythonImportsCheck = [ "gpsoauth" ];
40
41 meta = with lib; {
42 description = "Library for Google Play Services OAuth";
43 homepage = "https://github.com/simon-weber/gpsoauth";
44 license = licenses.mit;
45 maintainers = with maintainers; [ jgillich ];
46 };
47}