at 24.11-pre 1.2 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 fetchpatch, 6 requests, 7 pytestCheckHook, 8 mock, 9 nose, 10 pycrypto, 11}: 12 13buildPythonPackage rec { 14 pname = "rauth"; 15 version = "0.7.2"; 16 format = "setuptools"; 17 18 src = fetchFromGitHub { 19 owner = "litl"; 20 repo = "rauth"; 21 rev = version; 22 hash = "sha256-wRKZbxZCEfihOaJM8sk8438LE++KJWxdOGImpL1gHa4="; 23 }; 24 25 patches = [ 26 (fetchpatch { 27 # https://github.com/litl/rauth/pull/211 28 name = "fix-pycrypdodome-replacement-for-pycrypto.patch"; 29 url = "https://github.com/litl/rauth/commit/7fb3b7bf1a1869a52cf59ee3eb607d318e97265c.patch"; 30 hash = "sha256-jiAIw+VQ2d/bkm2brqfY1RUrNGf+lsMPnoI91gGUS6o="; 31 }) 32 ]; 33 34 propagatedBuildInputs = [ requests ]; 35 36 pythonImportsCheck = [ "rauth" ]; 37 38 nativeCheckInputs = [ 39 pytestCheckHook 40 mock 41 nose 42 pycrypto 43 ]; 44 45 meta = with lib; { 46 description = "A Python library for OAuth 1.0/a, 2.0, and Ofly"; 47 homepage = "https://github.com/litl/rauth"; 48 changelog = "https://github.com/litl/rauth/blob/${src.rev}/CHANGELOG"; 49 license = licenses.mit; 50 maintainers = with maintainers; [ blaggacao ]; 51 }; 52}