Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / mock / default.nix
blob7e5a72a47fadd27eab38552e075dd68df6d804e2
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , pythonOlder
5 , pytestCheckHook
6 }:
8 buildPythonPackage rec {
9   pname = "mock";
10   version = "5.1.0";
11   format = "setuptools";
13   disabled = pythonOlder "3.6";
15   src = fetchPypi {
16     inherit pname version;
17     sha256 = "sha256-Xpaq1czaRxjgointlLICTfdcwtVVdbpXYtMfV2e4dn0=";
18   };
20   nativeCheckInputs = [
21     pytestCheckHook
22   ];
24   pythonImportsCheck = [
25     "mock"
26   ];
28   meta = with lib; {
29     description = "Rolling backport of unittest.mock for all Pythons";
30     homepage = "https://github.com/testing-cabal/mock";
31     changelog = "https://github.com/testing-cabal/mock/blob/${version}/CHANGELOG.rst";
32     license = licenses.bsd2;
33     maintainers = [ ];
34   };