2
0
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-30 17:43:42 +00:00
nixpkgs/pkgs/development/python-modules/mock/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

36 lines
705 B
Nix
Raw Normal View History

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