From 1806785beb2a1c4b84259d1688d04c1b33410852 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 11 Dec 2022 00:34:54 +0100 Subject: [PATCH] python310Packages.todoist: add pythonImportsCheck --- .../python-modules/todoist/default.nix | 22 ++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/todoist/default.nix b/pkgs/development/python-modules/todoist/default.nix index d4797bdfad35..611680d9734d 100644 --- a/pkgs/development/python-modules/todoist/default.nix +++ b/pkgs/development/python-modules/todoist/default.nix @@ -1,21 +1,33 @@ -{ lib, fetchPypi, buildPythonPackage -, requests, pythonOlder, typing +{ lib +, fetchPypi +, buildPythonPackage +, requests +, pythonOlder }: buildPythonPackage rec { pname = "todoist-python"; version = "8.1.3"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - sha256 = "sha256-AFRKA5VRD6jyiguZYP7WOQOWqHq1GjUzbuez0f1070U="; + hash = "sha256-AFRKA5VRD6jyiguZYP7WOQOWqHq1GjUzbuez0f1070U="; }; - propagatedBuildInputs = [ requests ] ++ lib.optional (pythonOlder "3.5") typing; + propagatedBuildInputs = [ + requests + ]; + + pythonImportsCheck = [ + "todoist" + ]; meta = with lib; { description = "The official Todoist Python API library"; - homepage = "https://todoist-python.readthedocs.io/en/latest/"; + homepage = "https://todoist-python.readthedocs.io/"; license = licenses.mit; maintainers = with maintainers; [ ]; };