Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

Merge pull request #31703 from Mic92/rope

Rope / spyder update

authored by Frederik Rietdijk and committed by GitHub 1e64aa95 6deba8cc

+86 -37
+18 -16
pkgs/applications/science/spyder/default.nix
··· 1 - { stdenv, fetchurl, unzip, buildPythonApplication, makeDesktopItem 1 + { stdenv, fetchPypi, unzip, buildPythonApplication, makeDesktopItem 2 2 # mandatory 3 - , pyside 4 - # recommended 5 - , pyflakes ? null, rope ? null, sphinx ? null, numpy ? null, scipy ? null, matplotlib ? null 3 + , qtpy, numpydoc, qtconsole, qtawesome, jedi, pycodestyle, psutil 4 + , pyflakes, rope, sphinx, nbconvert, mccabe 5 + # optional 6 + , numpy ? null, scipy ? null, matplotlib ? null 6 7 # optional 7 - , ipython ? null, pylint ? null, pep8 ? null 8 + , pylint ? null 8 9 }: 9 10 10 11 buildPythonApplication rec { 11 - name = "spyder-${version}"; 12 - version = "2.3.8"; 12 + pname = "spyder"; 13 + version = "3.2.4"; 13 14 namePrefix = ""; 14 15 15 - src = fetchurl { 16 - url = "mirror://pypi/s/spyder/${name}.zip"; 17 - sha256 = "99fdae2cea325c0f2842c77bd67dd22db19fef3d9c0dde1545b1a2650eae517e"; 16 + src = fetchPypi { 17 + inherit pname version; 18 + sha256 = "028hg71gfq2yrplwhhl7hl4rbwji1l0zxzghblwmb0i443ki10v3"; 18 19 }; 19 20 20 - # NOTE: sphinx makes the build fail with: ValueError: ZIP does not support timestamps before 1980 21 - propagatedBuildInputs = 22 - [ pyside pyflakes rope numpy scipy matplotlib ipython pylint pep8 ]; 21 + propagatedBuildInputs = [ 22 + jedi pycodestyle psutil qtpy pyflakes rope numpy scipy matplotlib pylint 23 + numpydoc qtconsole qtawesome nbconvert mccabe 24 + ]; 23 25 24 26 # There is no test for spyder 25 27 doCheck = false; ··· 36 38 37 39 # Create desktop item 38 40 postInstall = '' 39 - mkdir -p $out/share/{applications,icons} 40 - cp $desktopItem/share/applications/* $out/share/applications/ 41 - cp spyderlib/images/spyder.svg $out/share/icons/ 41 + mkdir -p $out/share/icons 42 + cp spyder/images/spyder.svg $out/share/icons 43 + cp -r $desktopItem/share/applications/ $out/share 42 44 ''; 43 45 44 46 meta = with stdenv.lib; {
+19
pkgs/development/python-modules/qtawesome/default.nix
··· 1 + { stdenv, buildPythonPackage, fetchPypi, qtpy, six, pyside }: 2 + 3 + buildPythonPackage rec { 4 + pname = "QtAwesome"; 5 + version = "0.4.4"; 6 + 7 + src = fetchPypi { 8 + inherit pname version; 9 + sha256 = "12l71wh9fcd79d6c7qfzp029iph6gv4daxpg2ddpzr9lrvcw3yah"; 10 + }; 11 + 12 + propagatedBuildInputs = [ qtpy six pyside ]; 13 + 14 + meta = with stdenv.lib; { 15 + description = "Iconic fonts in PyQt and PySide applications"; 16 + homepage = https://github.com/spyder-ide/qtawesome; 17 + license = licenses.mit; 18 + }; 19 + }
+25
pkgs/development/python-modules/qtpy/default.nix
··· 1 + { stdenv, buildPythonPackage, fetchPypi, pyside, pytest }: 2 + 3 + buildPythonPackage rec { 4 + pname = "QtPy"; 5 + version = "1.3.1"; 6 + 7 + src = fetchPypi { 8 + inherit pname version; 9 + sha256 = "04skhjb2dbbhvpq0x71nnz2h68805fkxfpkdjhwvd7lzsljjbbq8"; 10 + }; 11 + 12 + # no concrete propagatedBuildInputs as multiple backends are supposed 13 + checkInputs = [ pyside pytest ]; 14 + 15 + doCheck = false; # require X 16 + checkPhase = '' 17 + py.test qtpy/tests 18 + ''; 19 + 20 + meta = with stdenv.lib; { 21 + description = "Abstraction layer for PyQt5/PyQt4/PySide2/PySide"; 22 + homepage = https://github.com/spyder-ide/qtpy; 23 + license = licenses.mit; 24 + }; 25 + }
+18
pkgs/development/python-modules/rope/default.nix
··· 1 + { stdenv, buildPythonPackage, fetchPypi }: 2 + 3 + buildPythonPackage rec { 4 + pname = "rope"; 5 + version = "0.10.7"; 6 + 7 + src = fetchPypi { 8 + inherit pname version; 9 + sha256 = "1lc01pjn0yr6yqcpbf6kk170zg8zhnyzj8kqlsch1mag0g9dz7m0"; 10 + }; 11 + 12 + meta = with stdenv.lib; { 13 + description = "Python refactoring library"; 14 + homepage = https://github.com/python-rope/rope; 15 + maintainers = with maintainers; [ goibhniu ]; 16 + license = licenses.gpl2; 17 + }; 18 + }
+6 -21
pkgs/top-level/python-packages.nix
··· 17122 17122 }; 17123 17123 }; 17124 17124 17125 + qtawesome = callPackage ../development/python-modules/qtawesome { }; 17126 + 17125 17127 qtconsole = callPackage ../development/python-modules/qtconsole { }; 17128 + 17129 + qtpy = callPackage ../development/python-modules/qtpy { }; 17126 17130 17127 17131 quantities = buildPythonPackage rec { 17128 17132 name = "quantities-0.10.1"; ··· 17490 17494 17491 17495 rootpy = callPackage ../development/python-modules/rootpy { }; 17492 17496 17493 - rope = buildPythonPackage rec { 17494 - version = "0.10.2"; 17495 - name = "rope-${version}"; 17496 - 17497 - disabled = isPy3k; 17498 - 17499 - src = pkgs.fetchurl { 17500 - url = "mirror://pypi/r/rope/${name}.tar.gz"; 17501 - sha256 = "0rdlvp8h74qs49wz1hx6qy8mgp2ddwlfs7z13h9139ynq04a3z7z"; 17502 - }; 17503 - 17504 - meta = { 17505 - description = "Python refactoring library"; 17506 - homepage = http://rope.sf.net; 17507 - maintainers = with maintainers; [ goibhniu ]; 17508 - license = licenses.gpl2; 17509 - }; 17510 - }; 17497 + rope = callPackage ../development/python-modules/rope { }; 17511 17498 17512 17499 ropper = callPackage ../development/python-modules/ropper { }; 17513 17500 ··· 19041 19028 }; 19042 19029 }); 19043 19030 19044 - spyder = callPackage ../applications/science/spyder { 19045 - rope = if isPy3k then null else self.rope; 19046 - }; 19031 + spyder = callPackage ../applications/science/spyder { }; 19047 19032 19048 19033 sqlalchemy = callPackage ../development/python-modules/sqlalchemy { }; 19049 19034