diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2023-07-05 15:58:30 +0200 |
---|---|---|
committer | Fabian Affolter <mail@fabian-affolter.ch> | 2023-07-05 16:01:38 +0200 |
commit | 7db89d08516608e53bf777245375c19dd9627eef (patch) | |
tree | 292d2d265c589b498186ce61a956a186f7a019cf /pkgs/applications/networking/p2p/pyrosimple | |
parent | 13bab5f29721d7b1b9eb6404e4e4791778997cb8 (diff) |
pyrosimple: 2.8.0 -> 2.9.0
Changelog: https://github.com/kannibalox/pyrosimple/blob/v2.9.0/CHANGELOG.md
Diffstat (limited to 'pkgs/applications/networking/p2p/pyrosimple')
-rw-r--r-- | pkgs/applications/networking/p2p/pyrosimple/default.nix | 64 |
1 files changed, 25 insertions, 39 deletions
diff --git a/pkgs/applications/networking/p2p/pyrosimple/default.nix b/pkgs/applications/networking/p2p/pyrosimple/default.nix index c735057e4573f..26f1e1574c204 100644 --- a/pkgs/applications/networking/p2p/pyrosimple/default.nix +++ b/pkgs/applications/networking/p2p/pyrosimple/default.nix @@ -1,53 +1,36 @@ { lib , stdenv -, python3Packages +, fetchFromGitHub , nix-update-script , pyrosimple +, python3 , testers -, fetchPypi -, buildPythonPackage -, pythonRelaxDepsHook -, poetry-core -, bencode-py -, apscheduler -, jinja2 -, python-daemon -, importlib-resources -, parsimonious -, prometheus-client -, prompt-toolkit -, requests -, shtab -, inotify , withInotify ? stdenv.isLinux -, python-box -, tomli -, tomli-w }: -let - pname = "pyrosimple"; - version = "2.8.0"; -in buildPythonPackage { - inherit pname version; +python3.pkgs.buildPythonApplication rec { + pname = "pyrosimple"; + version = "2.9.0"; + format = "pyproject"; - src = fetchPypi { - inherit pname version; - hash = "sha256-K0QjEcGzROlSWuUHWqUbcOdKccrHex2SlwPAmsmIbaQ="; + src = fetchFromGitHub { + owner = "kannibalox"; + repo = pname; + rev = "refs/tags/v${version}"; + hash = "sha256-KDQUSsotTpmnYq7kCRGIRWCZKxr2bxPKCvKy+OmoOm8="; }; - format = "pyproject"; + pythonRelaxDeps = [ + "prometheus-client" + "python-daemon" + ]; - nativeBuildInputs = [ + nativeBuildInputs = with python3.pkgs; [ poetry-core pythonRelaxDepsHook ]; - pythonRelaxDeps = [ - "python-daemon" - ]; - - propagatedBuildInputs = [ + propagatedBuildInputs = with python3.pkgs; [ bencode-py apscheduler jinja2 @@ -59,10 +42,15 @@ in buildPythonPackage { requests shtab python-box - tomli tomli-w + ] ++ lib.optionals (pythonOlder "3.11") [ + tomli ] ++ lib.optional withInotify inotify; + nativeCheckInputs = with python3.pkgs; [ + pytestCheckHook + ]; + passthru = { updateScript = nix-update-script { }; tests = testers.testVersion { @@ -72,12 +60,10 @@ in buildPythonPackage { }; meta = with lib; { + description = "A rTorrent client"; homepage = "https://kannibalox.github.io/pyrosimple/"; - description = "A rTorrent client and Python 3 fork of the pyrocore tools"; - license = licenses.gpl3Plus; changelog = "https://github.com/kannibalox/pyrosimple/blob/v${version}/CHANGELOG.md"; - platforms = platforms.all; + license = licenses.gpl3Plus; maintainers = with maintainers; [ ne9z vamega ]; }; - } |