diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2021-02-08 17:26:49 +0100 |
---|---|---|
committer | Frederik Rietdijk <fridh@fridh.nl> | 2021-02-26 11:02:02 +0100 |
commit | 9681d24e1450d1bee87b5f668e7e5ab67c231cbb (patch) | |
tree | dc78ac8bba23aff1dc8d6f2bf7ac0f1b2054a426 /pkgs/development/python-modules/pytest-mock | |
parent | f42250c70b96aef3ef50afcf750f06ced872f51d (diff) |
python3Packages.pytest-mock: 3.3.1 -> 3.5.1
Diffstat (limited to 'pkgs/development/python-modules/pytest-mock')
-rw-r--r-- | pkgs/development/python-modules/pytest-mock/default.nix | 30 |
1 files changed, 11 insertions, 19 deletions
diff --git a/pkgs/development/python-modules/pytest-mock/default.nix b/pkgs/development/python-modules/pytest-mock/default.nix index ad82b389bee83..3e044b4fe5965 100644 --- a/pkgs/development/python-modules/pytest-mock/default.nix +++ b/pkgs/development/python-modules/pytest-mock/default.nix @@ -1,41 +1,33 @@ { lib , buildPythonPackage , fetchPypi -, fetchpatch -, isPy3k -, pytest -, mock +, pytest-asyncio +, pytestCheckHook , setuptools_scm }: buildPythonPackage rec { pname = "pytest-mock"; - version = "3.3.1"; + version = "3.5.1"; src = fetchPypi { inherit pname version; - sha256 = "a4d6d37329e4a893e77d9ffa89e838dd2b45d5dc099984cf03c703ac8411bb82"; + sha256 = "1z6r3n78bilfzkbxj083p0ib04ia1bhfgnj2qq9x6q4mmykapqm1"; }; - propagatedBuildInputs = lib.optional (!isPy3k) mock; - - nativeBuildInputs = [ - setuptools_scm - ]; + nativeBuildInputs = [ setuptools_scm ]; checkInputs = [ - pytest + pytest-asyncio + pytestCheckHook ]; - # ignore test which only works with pytest5 output structure - checkPhase = '' - pytest -k 'not detailed_introspection_async' - ''; + pythonImportsCheck = [ "pytest_mock" ]; meta = with lib; { - description = "Thin-wrapper around the mock package for easier use with py.test."; - homepage = "https://github.com/pytest-dev/pytest-mock"; - license = licenses.mit; + description = "Thin-wrapper around the mock package for easier use with pytest"; + homepage = "https://github.com/pytest-dev/pytest-mock"; + license = with licenses; [ mit ]; maintainers = with maintainers; [ nand0p ]; }; } |