From fb8f5aa450e340ad869558702fd38d07ff0f9893 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 28 Aug 2022 10:34:46 +0200 Subject: [PATCH] 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 ]; }; - }