diff options
Diffstat (limited to 'pkgs/development/python-modules/typeshed-client')
-rw-r--r-- | pkgs/development/python-modules/typeshed-client/default.nix | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/typeshed-client/default.nix b/pkgs/development/python-modules/typeshed-client/default.nix new file mode 100644 index 0000000000000..03877756e5721 --- /dev/null +++ b/pkgs/development/python-modules/typeshed-client/default.nix @@ -0,0 +1,51 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, importlib-resources +, pytestCheckHook +, pythonOlder +, setuptools +}: + +buildPythonPackage rec { + pname = "typeshed-client"; + version = "2.4.0"; + pyproject = true; + + disabled = pythonOlder "3.7"; + + src = fetchFromGitHub { + owner = "JelleZijlstra"; + repo = "typeshed_client"; + rev = "refs/tags/v${version}"; + hash = "sha256-g3FECKebKeM3JPWem6+Y9T27PcAxVxj1SiBd5siLSJ4="; + }; + + nativeBuildInputs = [ + setuptools + ]; + + propagatedBuildInputs = [ + importlib-resources + ]; + + nativeCheckInputs = [ + pytestCheckHook + ]; + + pythonImportsCheck = [ + "typeshed_client" + ]; + + pytestFlagsArray = [ + "tests/test.py" + ]; + + meta = with lib; { + description = "Retrieve information from typeshed and other typing stubs"; + homepage = "https://github.com/JelleZijlstra/typeshed_client"; + changelog = "https://github.com/JelleZijlstra/typeshed_client/releases/tag/v${version}"; + license = licenses.mit; + maintainers = with maintainers; [ ]; + }; +} |