depot/third_party/nixpkgs/pkgs/development/python-modules/mock/default.nix
Default email a0cb138ada Project import generated by Copybara.
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
2023-02-02 18:25:31 +00:00

40 lines
808 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, fetchpatch
, python
, pythonOlder
, pytest
, unittestCheckHook
}:
buildPythonPackage rec {
pname = "mock";
version = "4.0.3";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "7d3fbbde18228f4ff2f1f119a45cdffa458b4c0dee32eb4d2bb2f82554bac7bc";
};
patches = [
(fetchpatch {
url = "https://github.com/testing-cabal/mock/commit/f3e3d82aab0ede7e25273806dc0505574d85eae2.patch";
sha256 = "sha256-wPrv1/WeICZHn31UqFlICFsny2knvn3+Xg8BZoaGbwQ=";
})
];
nativeCheckInputs = [
unittestCheckHook
pytest
];
meta = with lib; {
description = "Mock objects for Python";
homepage = "https://github.com/testing-cabal/mock";
license = licenses.bsd2;
};
}