diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/types-requests/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/types-requests/default.nix | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/types-requests/default.nix b/nixpkgs/pkgs/development/python-modules/types-requests/default.nix new file mode 100644 index 000000000000..520927662c2b --- /dev/null +++ b/nixpkgs/pkgs/development/python-modules/types-requests/default.nix @@ -0,0 +1,41 @@ +{ lib +, buildPythonPackage +, fetchPypi +, setuptools +, urllib3 +, types-urllib3 +}: + +buildPythonPackage rec { + pname = "types-requests"; + version = "2.31.0.20240218"; + pyproject = true; + + src = fetchPypi { + inherit pname version; + hash = "sha256-8XIduoOFlY9QSlOGJAuS3kc04EegikB1HBZU0awzScU="; + }; + + nativeBuildInputs = [ + setuptools + urllib3 + ]; + + propagatedBuildInputs = [ + types-urllib3 + ]; + + # Module doesn't have tests + doCheck = false; + + pythonImportsCheck = [ + "requests-stubs" + ]; + + meta = with lib; { + description = "Typing stubs for requests"; + homepage = "https://github.com/python/typeshed"; + license = licenses.asl20; + maintainers = with maintainers; [ fab ]; + }; +} |