From e3337a6055e6b2c30fd83d5884c81e0b6fdce230 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sun, 25 Dec 2022 20:40:58 +0000 Subject: [PATCH 1/2] python39Packages.telegraph: 2.1.0 -> 2.2.0 --- pkgs/development/python-modules/telegraph/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/telegraph/default.nix b/pkgs/development/python-modules/telegraph/default.nix index a27db889c887..d4e4331ff29d 100644 --- a/pkgs/development/python-modules/telegraph/default.nix +++ b/pkgs/development/python-modules/telegraph/default.nix @@ -9,14 +9,14 @@ buildPythonPackage rec { pname = "telegraph"; - version = "2.1.0"; + version = "2.2.0"; disabled = pythonOlder "3.6"; src = fetchFromGitHub { repo = "telegraph"; owner = "python273"; - sha256 = "ChlQJu4kHkXUf4gOtW5HS+ThP3eQL7LsyANeS/10pLo="; - rev = "da629de7c00c3b8b0c7ab8ef4bf23caf419a3c6c"; + sha256 = "sha256-xARX8lSOftNVYY4InR5vU4OiguCJJJZv/W76G9eLgNY="; + rev = "refs/tags/v${version}"; }; checkInputs = [ pytestCheckHook ]; From 38a1e971f863e115b57f4fbd3d789dce7bf1ced6 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 26 Dec 2022 09:17:20 +0100 Subject: [PATCH 2/2] python310Packages.telegraph: add changelog to meta - update disabled --- .../python-modules/telegraph/default.nix | 36 +++++++++++-------- 1 file changed, 22 insertions(+), 14 deletions(-) diff --git a/pkgs/development/python-modules/telegraph/default.nix b/pkgs/development/python-modules/telegraph/default.nix index d4e4331ff29d..9eb246a99ea3 100644 --- a/pkgs/development/python-modules/telegraph/default.nix +++ b/pkgs/development/python-modules/telegraph/default.nix @@ -10,25 +10,17 @@ buildPythonPackage rec { pname = "telegraph"; version = "2.2.0"; - disabled = pythonOlder "3.6"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchFromGitHub { repo = "telegraph"; owner = "python273"; - sha256 = "sha256-xARX8lSOftNVYY4InR5vU4OiguCJJJZv/W76G9eLgNY="; rev = "refs/tags/v${version}"; + hash = "sha256-xARX8lSOftNVYY4InR5vU4OiguCJJJZv/W76G9eLgNY="; }; - checkInputs = [ pytestCheckHook ]; - - pytestFlagsArray = [ "tests/" ]; - - disabledTests = [ - "test_get_page" - ]; - - doCheck = true; - propagatedBuildInputs = [ requests ]; @@ -39,12 +31,28 @@ buildPythonPackage rec { ]; }; + checkInputs = [ + pytestCheckHook + ]; - pythonImportsCheck = [ "telegraph" ]; + pytestFlagsArray = [ + "tests/" + ]; + + disabledTests = [ + "test_get_page" + ]; + + doCheck = true; + + pythonImportsCheck = [ + "telegraph" + ]; meta = with lib; { - homepage = "https://github.com/python273/telegraph"; description = "Telegraph API wrapper"; + homepage = "https://github.com/python273/telegraph"; + changelog = "https://github.com/python273/telegraph/releases/tag/v${version}"; license = licenses.mit; maintainers = with maintainers; [ gp2112 ]; };