Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09 1.1 kB view raw
1{ lib 2, pythonOlder 3, buildPythonPackage 4, fetchPypi 5, betamax 6, pytest 7, betamax-matchers 8, unittest2 9, mock 10, requests 11, uritemplate 12, dateutil 13, jwcrypto 14, pyopenssl 15, ndg-httpsclient 16, pyasn1 17}: 18 19buildPythonPackage rec { 20 pname = "github3.py"; 21 version = "1.3.0"; 22 23 src = fetchPypi { 24 inherit pname version; 25 sha256 = "15a115c18f7bfcf934dfef7ab103844eb9f620c586bad65967708926da47cbda"; 26 }; 27 28 checkInputs = [ betamax pytest betamax-matchers ] 29 ++ lib.optional (pythonOlder "3") unittest2 30 ++ lib.optional (pythonOlder "3.3") mock; 31 propagatedBuildInputs = [ requests uritemplate dateutil jwcrypto pyopenssl ndg-httpsclient pyasn1 ]; 32 33 postPatch = '' 34 sed -i -e 's/unittest2 ==0.5.1/unittest2>=0.5.1/' setup.py 35 ''; 36 37 # TODO: only disable the tests that require network 38 doCheck = false; 39 40 meta = with lib; { 41 homepage = "https://github3py.readthedocs.org/en/master/"; 42 description = "A wrapper for the GitHub API written in python"; 43 license = licenses.bsd3; 44 maintainers = with maintainers; [ pSub ]; 45 }; 46 47}