depot/third_party/nixpkgs/pkgs/development/python-modules/mock/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

32 lines
698 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
pythonOlder,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "mock";
version = "5.1.0";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
hash = "sha256-Xpaq1czaRxjgointlLICTfdcwtVVdbpXYtMfV2e4dn0=";
};
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "mock" ];
meta = with lib; {
description = "Rolling backport of unittest.mock for all Pythons";
homepage = "https://github.com/testing-cabal/mock";
changelog = "https://github.com/testing-cabal/mock/blob/${version}/CHANGELOG.rst";
license = licenses.bsd2;
maintainers = [ ];
};
}