diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/txgithub')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/txgithub/default.nix | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/txgithub/default.nix b/nixpkgs/pkgs/development/python-modules/txgithub/default.nix new file mode 100644 index 000000000000..5340b202e688 --- /dev/null +++ b/nixpkgs/pkgs/development/python-modules/txgithub/default.nix @@ -0,0 +1,39 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +, pyopenssl +, twisted +, service-identity +}: + +buildPythonPackage rec { + pname = "txgithub"; + version = "15.0.0"; + + src = fetchPypi { + inherit pname version; + sha256 = "16gbizy8vkxasxylwzj4p66yw8979nvzxdj6csidgmng7gi2k8nx"; + }; + + propagatedBuildInputs = [ 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 = with stdenv.lib; { + description = "GitHub API client implemented using Twisted."; + homepage = "https://github.com/tomprince/txgithub"; + license = licenses.mit; + maintainers = with maintainers; [ nand0p ]; + }; + +} |