pythonPackages.txgithub: init at 15.0.0
Tested on Linux - python 2.7 - python 3.5
This commit is contained in:
parent
28b60b1924
commit
85546fb342
@ -26562,6 +26562,35 @@ in modules // {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
txgithub = buildPythonPackage rec {
|
||||||
|
name = "${pname}-${version}";
|
||||||
|
pname = "txgithub";
|
||||||
|
version = "15.0.0";
|
||||||
|
src = pkgs.fetchurl {
|
||||||
|
url = "mirror://pypi/t/${pname}/${name}.tar.gz";
|
||||||
|
sha256 = "16gbizy8vkxasxylwzj4p66yw8979nvzxdj6csidgmng7gi2k8nx";
|
||||||
|
};
|
||||||
|
propagatedBuildInputs = with self; [ pyopenssl twisted service-identity ];
|
||||||
|
# fix python3 issues
|
||||||
|
patchPhase = ''
|
||||||
|
sed -i 's/except usage.UsageError, errortext/except usage.UsageError as errortext/' txgithub/scripts/create_token.py
|
||||||
|
sed -i 's/except usage.UsageError, errortext/except usage.UsageError as errortext/' txgithub/scripts/gist.py
|
||||||
|
sed -i 's/print response\[\x27html_url\x27\]/print(response\[\x27html_url\x27\])/' txgithub/scripts/gist.py
|
||||||
|
sed -i '41d' txgithub/scripts/gist.py
|
||||||
|
sed -i '41d' txgithub/scripts/gist.py
|
||||||
|
'';
|
||||||
|
|
||||||
|
# No tests distributed
|
||||||
|
doCheck = false;
|
||||||
|
meta = {
|
||||||
|
description = "GitHub API client implemented using Twisted.";
|
||||||
|
homepage = "https://github.com/tomprince/txgithub";
|
||||||
|
license = licenses.mit;
|
||||||
|
maintainers = with maintainers; [ nand0p ];
|
||||||
|
platforms = platforms.all;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
txrequests = buildPythonPackage rec {
|
txrequests = buildPythonPackage rec {
|
||||||
name = "${pname}-${version}";
|
name = "${pname}-${version}";
|
||||||
pname = "txrequests";
|
pname = "txrequests";
|
||||||
|
Loading…
Reference in New Issue
Block a user