depot/third_party/nixpkgs/pkgs/development/python-modules/requests-mock/default.nix
Default email 5c370c0b2a Project import generated by Copybara.
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
2024-05-15 17:35:15 +02:00

48 lines
859 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, fixtures
, purl
, pytestCheckHook
, requests
, requests-futures
, setuptools
, setuptools-scm
, testtools
}:
buildPythonPackage rec {
pname = "requests-mock";
version = "1.12.1";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-6eEuMztSUVboKjyFLyIBa5FYIg0vR0VN6crop303FAE=";
};
build-system = [
setuptools
setuptools-scm
];
dependencies = [
requests
];
nativeCheckInputs = [
fixtures
purl
pytestCheckHook
requests-futures
testtools
];
meta = with lib; {
description = "Mock out responses from the requests package";
homepage = "https://requests-mock.readthedocs.io";
changelog = "https://github.com/jamielennox/requests-mock/releases/tag/${version}";
license = licenses.asl20;
maintainers = [ ];
};
}