2019-11-21 01:53:28 +00:00
|
|
|
{ lib
|
2018-10-16 22:15:17 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2022-03-29 22:13:51 +00:00
|
|
|
, fetchpatch
|
2018-10-16 22:15:17 +00:00
|
|
|
, python
|
2022-03-29 22:13:51 +00:00
|
|
|
, pythonOlder
|
2020-05-09 11:15:43 +00:00
|
|
|
, pytest
|
2022-08-06 16:32:04 +00:00
|
|
|
, unittestCheckHook
|
2018-10-16 22:15:17 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "mock";
|
2021-02-20 09:09:11 +00:00
|
|
|
version = "4.0.3";
|
2022-03-29 22:13:51 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
2018-10-16 22:15:17 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-02-20 09:09:11 +00:00
|
|
|
sha256 = "7d3fbbde18228f4ff2f1f119a45cdffa458b4c0dee32eb4d2bb2f82554bac7bc";
|
2018-10-16 22:15:17 +00:00
|
|
|
};
|
|
|
|
|
2022-03-29 22:13:51 +00:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/testing-cabal/mock/commit/f3e3d82aab0ede7e25273806dc0505574d85eae2.patch";
|
|
|
|
sha256 = "sha256-wPrv1/WeICZHn31UqFlICFsny2knvn3+Xg8BZoaGbwQ=";
|
|
|
|
})
|
|
|
|
];
|
2019-02-04 08:18:17 +00:00
|
|
|
|
2020-05-09 11:15:43 +00:00
|
|
|
checkInputs = [
|
2022-08-06 16:32:04 +00:00
|
|
|
unittestCheckHook
|
2020-05-09 11:15:43 +00:00
|
|
|
pytest
|
|
|
|
];
|
|
|
|
|
2019-11-21 01:53:28 +00:00
|
|
|
meta = with lib; {
|
2018-10-16 22:15:17 +00:00
|
|
|
description = "Mock objects for Python";
|
2022-03-29 22:13:51 +00:00
|
|
|
homepage = "https://github.com/testing-cabal/mock";
|
2019-11-21 01:53:28 +00:00
|
|
|
license = licenses.bsd2;
|
2018-10-16 22:15:17 +00:00
|
|
|
};
|
|
|
|
}
|