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