nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
fork

Configure Feed

Select the types of activity you want to include in your feed.

python310Packages.gplaycli: enable tests

- add pythonImportsCheck

+58 -7
+58 -7
pkgs/development/python-modules/gplaycli/default.nix
··· 1 - { buildPythonPackage, lib, libffi, isPy3k, pyasn1, clint, ndg-httpsclient 2 - , protobuf, requests, args, matlink-gpapi, pyaxmlparser, setuptools, fetchFromGitHub 1 + { lib 2 + , args 3 + , buildPythonPackage 4 + , clint 5 + , fetchFromGitHub 6 + , libffi 7 + , matlink-gpapi 8 + , ndg-httpsclient 9 + , protobuf 10 + , pyasn1 11 + , pyaxmlparser 12 + , pytestCheckHook 13 + , pythonOlder 14 + , requests 15 + , setuptools 3 16 }: 4 17 5 18 buildPythonPackage rec { 6 19 pname = "gplaycli"; 7 20 version = "3.29"; 21 + format = "setuptools"; 22 + 23 + disabled = pythonOlder "3.6"; 8 24 9 25 src = fetchFromGitHub { 10 26 owner = "matlink"; 11 27 repo = "gplaycli"; 12 - rev = version; 13 - sha256 = "10gc1wr259z5hxyk834wyyggvyh82agfq0zp711s4jf334inp45r"; 28 + rev = "refs/tags/${version}"; 29 + hash = "sha256-uZBrIxnDSaJDOPcD7J4SCPr9nvecDDR9h+WnIjIP7IE="; 14 30 }; 15 31 16 - disabled = !isPy3k; 32 + propagatedBuildInputs = [ 33 + libffi 34 + pyasn1 35 + clint 36 + ndg-httpsclient 37 + protobuf 38 + requests 39 + args 40 + matlink-gpapi 41 + pyaxmlparser 42 + setuptools 43 + ]; 17 44 18 - propagatedBuildInputs = [ libffi pyasn1 clint ndg-httpsclient protobuf requests args matlink-gpapi pyaxmlparser setuptools ]; 45 + nativeCheckInputs = [ 46 + pytestCheckHook 47 + ]; 48 + 49 + pythonImportsCheck = [ 50 + "gplaycli" 51 + ]; 52 + 53 + preCheck = '' 54 + export PATH="$PATH:$out/bin"; 55 + ''; 56 + 57 + disabledTests = [ 58 + "test_alter_token" 59 + "test_another_device" 60 + "test_connection_credentials" 61 + "test_connection_token" 62 + "test_download_additional_files" 63 + "test_download_focus" 64 + "test_download_version" 65 + "test_download" 66 + "test_search" 67 + "test_update" 68 + ]; 19 69 20 70 meta = with lib; { 21 - homepage = "https://github.com/matlink/gplaycli"; 22 71 description = "Google Play Downloader via Command line"; 72 + homepage = "https://github.com/matlink/gplaycli"; 73 + changelog = "https://github.com/matlink/gplaycli/releases/tag/${version}"; 23 74 license = licenses.agpl3Plus; 24 75 maintainers = with maintainers; [ ]; 25 76 };