tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
python3Packages.gpapi: refactor and modernize
pyrox.dev
1 year ago
59ec08c4
83cdd624
+17
-14
1 changed file
expand all
collapse all
unified
split
pkgs
development
python-modules
gpapi
default.nix
+17
-14
pkgs/development/python-modules/gpapi/default.nix
···
7
pycryptodome,
8
requests,
9
protobuf_27,
0
10
}:
11
12
buildPythonPackage rec {
13
version = "0.4.4";
14
-
format = "setuptools";
15
pname = "gpapi";
0
16
17
src = fetchPypi {
18
inherit version pname;
19
-
sha256 = "0ampvsv97r3hy1cakif4kmyk1ynf3scbvh4fbk02x7xrxn4kl38w";
20
};
21
22
postPatch = ''
···
24
--replace-fail 'PROTOC_EXEC = "protoc"' 'PROTOC_EXEC = "${lib.getExe protobuf_27}"'
25
'';
26
27
-
# package doesn't contain unit tests
28
-
# scripts in ./test require networking
29
-
doCheck = false;
30
-
31
-
pythonImportsCheck = [ "gpapi.googleplay" ];
32
-
33
-
preBuild = ''
34
-
export PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION="python"
35
-
'';
36
37
buildInputs = [
38
protobuf_27
39
];
40
41
-
propagatedBuildInputs = [
42
cryptography
43
protobuf
44
pycryptodome
45
requests
46
];
47
48
-
meta = with lib; {
0
0
0
0
0
0
0
0
0
0
49
homepage = "https://github.com/NoMore201/googleplay-api";
50
-
license = licenses.gpl3Only;
51
description = "Google Play Unofficial Python API";
52
maintainers = [ ];
53
};
···
7
pycryptodome,
8
requests,
9
protobuf_27,
10
+
setuptools,
11
}:
12
13
buildPythonPackage rec {
14
version = "0.4.4";
0
15
pname = "gpapi";
16
+
pyproject = true;
17
18
src = fetchPypi {
19
inherit version pname;
20
+
sha256 = "sha256-HA06ie25ny7AXI7AvZgezvowfZ3ExalY8HDkk7betyo=";
21
};
22
23
postPatch = ''
···
25
--replace-fail 'PROTOC_EXEC = "protoc"' 'PROTOC_EXEC = "${lib.getExe protobuf_27}"'
26
'';
27
28
+
build-system = [ setuptools ];
0
0
0
0
0
0
0
0
29
30
buildInputs = [
31
protobuf_27
32
];
33
34
+
dependencies = [
35
cryptography
36
protobuf
37
pycryptodome
38
requests
39
];
40
41
+
preBuild = ''
42
+
export PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION="python"
43
+
'';
44
+
45
+
# package doesn't contain unit tests
46
+
# scripts in ./test require networking
47
+
doCheck = false;
48
+
49
+
pythonImportsCheck = [ "gpapi.googleplay" ];
50
+
51
+
meta = {
52
homepage = "https://github.com/NoMore201/googleplay-api";
53
+
license = lib.licenses.gpl3Only;
54
description = "Google Play Unofficial Python API";
55
maintainers = [ ];
56
};