Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / typeshed-client / default.nix
blob153f8a79daf46cf5d1894ae9c231cd4b018e7173
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , importlib-resources
5 , pytestCheckHook
6 , pythonOlder
7 , setuptools
8 }:
10 buildPythonPackage rec {
11   pname = "typeshed-client";
12   version = "2.5.1";
13   pyproject = true;
15   disabled = pythonOlder "3.7";
17   src = fetchFromGitHub {
18     owner = "JelleZijlstra";
19     repo = "typeshed_client";
20     rev = "refs/tags/v${version}";
21     hash = "sha256-lITreXYn/ZOc1fF2Sqcn8UDrZAjWYfjFSEaAxqTHb4s=";
22   };
24   nativeBuildInputs = [
25     setuptools
26   ];
28   propagatedBuildInputs = [
29     importlib-resources
30   ];
32   nativeCheckInputs = [
33     pytestCheckHook
34   ];
36   pythonImportsCheck = [
37     "typeshed_client"
38   ];
40   pytestFlagsArray = [
41     "tests/test.py"
42   ];
44   meta = with lib; {
45     description = "Retrieve information from typeshed and other typing stubs";
46     homepage = "https://github.com/JelleZijlstra/typeshed_client";
47     changelog = "https://github.com/JelleZijlstra/typeshed_client/releases/tag/v${version}";
48     license = licenses.mit;
49     maintainers = with maintainers; [ ];
50   };