nixpkgs/pkgs/development/python-modules/gpapi/default.nix

36 lines
808 B
Nix
Raw Normal View History

2021-05-09 12:23:01 +00:00
{ buildPythonPackage
, cryptography
, fetchPypi
, lib
, pythonOlder
, protobuf
, pycryptodome
2021-05-09 12:23:01 +00:00
, requests
}:
buildPythonPackage rec {
2019-12-03 13:39:49 +00:00
version = "0.4.4";
pname = "gpapi";
disabled = pythonOlder "3.3"; # uses shutil.which(), added in 3.3
src = fetchPypi {
inherit version pname;
2019-12-03 13:39:49 +00:00
sha256 = "0ampvsv97r3hy1cakif4kmyk1ynf3scbvh4fbk02x7xrxn4kl38w";
};
# package doesn't contain unit tests
# scripts in ./test require networking
2021-05-09 12:23:01 +00:00
doCheck = false;
pythonImportsCheck = [ "gpapi.googleplay" ];
propagatedBuildInputs = [ cryptography protobuf pycryptodome requests ];
meta = with lib; {
homepage = "https://github.com/NoMore201/googleplay-api";
2021-05-09 12:23:01 +00:00
license = licenses.gpl3Only;
description = "Google Play Unofficial Python API";
maintainers = with maintainers; [ ];
};
}