depot/third_party/nixpkgs/pkgs/development/python-modules/requests-mock/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

47 lines
866 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 = [ ];
};
}