diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 3b4da4e8850e..2880dc74583f 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -17011,6 +17011,12 @@ githubId = 821972; name = "Parth Mehrotra"; }; + paschoal = { + email = "paschoal@gmail.com"; + github = "paschoal"; + githubId = 64602; + name = "Matheus Paschoal"; + }; pashashocky = { email = "pashashocky@gmail.com"; github = "pashashocky"; diff --git a/pkgs/by-name/py/pyfa/package.nix b/pkgs/by-name/py/pyfa/package.nix index bf9785d49468..949f99618882 100644 --- a/pkgs/by-name/py/pyfa/package.nix +++ b/pkgs/by-name/py/pyfa/package.nix @@ -1,21 +1,114 @@ { lib, - appimageTools, - fetchurl, + python3Packages, + fetchFromGitHub, + gsettings-desktop-schemas, + adwaita-icon-theme, + wrapGAppsHook3, + gdk-pixbuf, }: let - version = "2.60.2"; + version = "2.61.0"; in -appimageTools.wrapType2 { +python3Packages.buildPythonApplication rec { inherit version; pname = "pyfa"; + format = "other"; - src = fetchurl { - name = "pyfa-appimage-${version}"; - url = "https://github.com/pyfa-org/Pyfa/releases/download/v${version}/pyfa-v${version}-linux.AppImage"; - hash = "sha256-6doetQ6E1Occ/SqewfxRqPEX1MnUuFomm+8VmetIz4Y="; + src = fetchFromGitHub { + owner = "pyfa-org"; + repo = "Pyfa"; + rev = "refs/tags/v${version}"; + hash = "sha256-VSuRQugUODc+LbhKbzsA09pnqPEIAt0pQS2An/p7r9A="; }; + build-system = [ python3Packages.setuptools ]; + dependencies = with python3Packages; [ + wxpython + logbook + matplotlib + python-dateutil + requests + sqlalchemy_1_4 + cryptography + markdown2 + beautifulsoup4 + pyaml + roman + numpy + python-jose + requests-cache + ]; + + buildInputs = [ + gsettings-desktop-schemas + adwaita-icon-theme + gdk-pixbuf + ]; + + dontWrapGApps = true; + nativeBuildInputs = [ + python3Packages.pyinstaller + wrapGAppsHook3 + ]; + + # + # upstream does not include setup.py + # + patchPhase = '' + cat > setup.py <