python310Packages.todoist: add pythonImportsCheck

This commit is contained in:
Fabian Affolter 2022-12-11 00:34:54 +01:00
parent 0b8752bb65
commit 1806785beb

View File

@ -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; [ ];
};