From 9aabd155bc8d7cb98a3722b26d7186e9b2630ab7 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sat, 27 Aug 2022 16:08:43 +0000 Subject: [PATCH 1/2] python310Packages.twitter: 1.19.3 -> 1.19.4 --- pkgs/development/python-modules/twitter/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/twitter/default.nix b/pkgs/development/python-modules/twitter/default.nix index f8a5124f2df4..bc367196b9dc 100644 --- a/pkgs/development/python-modules/twitter/default.nix +++ b/pkgs/development/python-modules/twitter/default.nix @@ -6,11 +6,11 @@ buildPythonPackage rec { pname = "twitter"; - version = "1.19.3"; + version = "1.19.4"; src = fetchPypi { inherit pname version; - sha256 = "a56ff9575fbd50a51ce91107dcb5a4c3fd00c2ba1bcb172ce538b0948d3626e6"; + sha256 = "sha256-g7jSSEpsdEihGuHG9MJTNVFe6NyB272vEsvAocRo72U="; }; nativeBuildInputs = [ setuptools-scm ]; From fb8f5aa450e340ad869558702fd38d07ff0f9893 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 28 Aug 2022 10:34:46 +0200 Subject: [PATCH 2/2] python310Packages.twitter: add pythonImportsCheck - disable on older Python releases - update meta --- .../python-modules/twitter/default.nix | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/twitter/default.nix b/pkgs/development/python-modules/twitter/default.nix index bc367196b9dc..e9676c0fa707 100644 --- a/pkgs/development/python-modules/twitter/default.nix +++ b/pkgs/development/python-modules/twitter/default.nix @@ -2,24 +2,35 @@ , buildPythonPackage , fetchPypi , setuptools-scm +, pythonOlder }: buildPythonPackage rec { pname = "twitter"; version = "1.19.4"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - sha256 = "sha256-g7jSSEpsdEihGuHG9MJTNVFe6NyB272vEsvAocRo72U="; + hash = "sha256-g7jSSEpsdEihGuHG9MJTNVFe6NyB272vEsvAocRo72U="; }; - nativeBuildInputs = [ setuptools-scm ]; + nativeBuildInputs = [ + setuptools-scm + ]; + doCheck = false; + pythonImportsCheck = [ + "twitter" + ]; + meta = with lib; { description = "Twitter API library"; - license = licenses.mit; + homepage = "https://mike.verdone.ca/twitter/"; + license = licenses.mit; maintainers = with maintainers; [ thoughtpolice ]; }; - }