1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 pyopenssl, 6 twisted, 7 service-identity, 8}: 9 10buildPythonPackage rec { 11 pname = "txgithub"; 12 version = "15.0.0"; 13 format = "setuptools"; 14 15 src = fetchPypi { 16 inherit pname version; 17 sha256 = "16gbizy8vkxasxylwzj4p66yw8979nvzxdj6csidgmng7gi2k8nx"; 18 }; 19 20 propagatedBuildInputs = [ 21 pyopenssl 22 twisted 23 service-identity 24 ]; 25 26 # fix python3 issues 27 patchPhase = '' 28 sed -i 's/except usage.UsageError, errortext/except usage.UsageError as errortext/' txgithub/scripts/create_token.py 29 sed -i 's/except usage.UsageError, errortext/except usage.UsageError as errortext/' txgithub/scripts/gist.py 30 sed -i 's/print response\[\x27html_url\x27\]/print(response\[\x27html_url\x27\])/' txgithub/scripts/gist.py 31 sed -i '41d' txgithub/scripts/gist.py 32 sed -i '41d' txgithub/scripts/gist.py 33 ''; 34 35 # No tests distributed 36 doCheck = false; 37 38 meta = with lib; { 39 description = "GitHub API client implemented using Twisted"; 40 homepage = "https://github.com/tomprince/txgithub"; 41 license = licenses.mit; 42 maintainers = [ ]; 43 }; 44}