nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 59 lines 1.1 kB view raw
1{ lib 2, buildPythonPackage 3, fake-useragent 4, fetchFromGitHub 5, pytest-aiohttp 6, pytestCheckHook 7, pythonOlder 8, requests 9, requests-mock 10, responses 11, simplejson 12}: 13 14buildPythonPackage rec { 15 pname = "pykeyatome"; 16 version = "1.5.2"; 17 format = "setuptools"; 18 19 disabled = pythonOlder "3.8"; 20 21 src = fetchFromGitHub { 22 owner = "jugla"; 23 repo = "pyKeyAtome"; 24 rev = "refs/tags/V${version}"; 25 sha256 = "sha256-9J8MaQs3+/Ld+v3WmA98lSu3iMrX4Se4q1jD1KeRTpw="; 26 }; 27 28 propagatedBuildInputs = [ 29 fake-useragent 30 requests 31 simplejson 32 ]; 33 34 checkInputs = [ 35 pytest-aiohttp 36 pytestCheckHook 37 requests-mock 38 responses 39 ]; 40 41 disabledTests = [ 42 # Tests require network access 43 "test_consumption" 44 "test_get_live" 45 "test_login" 46 "test_relog_after_session_down" 47 ]; 48 49 pythonImportsCheck = [ 50 "pykeyatome" 51 ]; 52 53 meta = with lib; { 54 description = "Python module to get data from Atome Key"; 55 homepage = "https://github.com/jugla/pyKeyAtome"; 56 license = licenses.mit; 57 maintainers = with maintainers; [ fab ]; 58 }; 59}