Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at python-updates 57 lines 1.1 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fake-useragent, 5 fetchFromGitHub, 6 pytest-aiohttp, 7 pytestCheckHook, 8 requests, 9 requests-mock, 10 responses, 11 simplejson, 12}: 13 14buildPythonPackage rec { 15 pname = "pykeyatome"; 16 version = "2.1.2"; 17 format = "setuptools"; 18 19 src = fetchFromGitHub { 20 owner = "jugla"; 21 repo = "pyKeyAtome"; 22 tag = "V${version}"; 23 hash = "sha256-zRXUjekawf2/zTSlXqHVB02dDkb6HbU4NN6UBgl2rtg="; 24 }; 25 26 propagatedBuildInputs = [ 27 fake-useragent 28 requests 29 simplejson 30 ]; 31 32 nativeCheckInputs = [ 33 pytest-aiohttp 34 pytestCheckHook 35 requests-mock 36 responses 37 ]; 38 39 disabledTests = [ 40 # Tests require network access 41 "test_consumption" 42 "test_get_live" 43 "test_login" 44 "test_relog_after_session_down" 45 ]; 46 47 pythonImportsCheck = [ "pykeyatome" ]; 48 49 meta = { 50 description = "Python module to get data from Atome Key"; 51 mainProgram = "pykeyatome"; 52 homepage = "https://github.com/jugla/pyKeyAtome"; 53 changelog = "https://github.com/jugla/pyKeyAtome/releases/tag/V${version}"; 54 license = lib.licenses.mit; 55 maintainers = with lib.maintainers; [ fab ]; 56 }; 57}