nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
fork

Configure Feed

Select the types of activity you want to include in your feed.

pythonPackages.txgithub: refactor move to python-modules

+40 -28
+39
pkgs/development/python-modules/txgithub/default.nix
··· 1 + { stdenv 2 + , buildPythonPackage 3 + , fetchPypi 4 + , pyopenssl 5 + , twisted 6 + , service-identity 7 + }: 8 + 9 + buildPythonPackage rec { 10 + pname = "txgithub"; 11 + version = "15.0.0"; 12 + 13 + src = fetchPypi { 14 + inherit pname version; 15 + sha256 = "16gbizy8vkxasxylwzj4p66yw8979nvzxdj6csidgmng7gi2k8nx"; 16 + }; 17 + 18 + propagatedBuildInputs = [ pyopenssl twisted service-identity ]; 19 + 20 + # fix python3 issues 21 + patchPhase = '' 22 + sed -i 's/except usage.UsageError, errortext/except usage.UsageError as errortext/' txgithub/scripts/create_token.py 23 + sed -i 's/except usage.UsageError, errortext/except usage.UsageError as errortext/' txgithub/scripts/gist.py 24 + sed -i 's/print response\[\x27html_url\x27\]/print(response\[\x27html_url\x27\])/' txgithub/scripts/gist.py 25 + sed -i '41d' txgithub/scripts/gist.py 26 + sed -i '41d' txgithub/scripts/gist.py 27 + ''; 28 + 29 + # No tests distributed 30 + doCheck = false; 31 + 32 + meta = with stdenv.lib; { 33 + description = "GitHub API client implemented using Twisted."; 34 + homepage = "https://github.com/tomprince/txgithub"; 35 + license = licenses.mit; 36 + maintainers = with maintainers; [ nand0p ]; 37 + }; 38 + 39 + }
+1 -28
pkgs/top-level/python-packages.nix
··· 4288 4288 4289 4289 usbtmc = callPackage ../development/python-modules/usbtmc {}; 4290 4290 4291 - txgithub = buildPythonPackage rec { 4292 - name = "${pname}-${version}"; 4293 - pname = "txgithub"; 4294 - version = "15.0.0"; 4295 - src = pkgs.fetchurl { 4296 - url = "mirror://pypi/t/${pname}/${name}.tar.gz"; 4297 - sha256 = "16gbizy8vkxasxylwzj4p66yw8979nvzxdj6csidgmng7gi2k8nx"; 4298 - }; 4299 - propagatedBuildInputs = with self; [ pyopenssl twisted service-identity ]; 4300 - # fix python3 issues 4301 - patchPhase = '' 4302 - sed -i 's/except usage.UsageError, errortext/except usage.UsageError as errortext/' txgithub/scripts/create_token.py 4303 - sed -i 's/except usage.UsageError, errortext/except usage.UsageError as errortext/' txgithub/scripts/gist.py 4304 - sed -i 's/print response\[\x27html_url\x27\]/print(response\[\x27html_url\x27\])/' txgithub/scripts/gist.py 4305 - sed -i '41d' txgithub/scripts/gist.py 4306 - sed -i '41d' txgithub/scripts/gist.py 4307 - ''; 4308 - 4309 - # No tests distributed 4310 - doCheck = false; 4311 - meta = { 4312 - description = "GitHub API client implemented using Twisted."; 4313 - homepage = "https://github.com/tomprince/txgithub"; 4314 - license = licenses.mit; 4315 - maintainers = with maintainers; [ nand0p ]; 4316 - platforms = platforms.all; 4317 - }; 4318 - }; 4291 + txgithub = callPackage ../development/python-modules/txgithub { }; 4319 4292 4320 4293 txrequests = buildPythonPackage rec { 4321 4294 name = "${pname}-${version}";