1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-06-20 00:19:25 +03:00
nixpkgs/pkgs/development/python-modules/pytest-mock/default.nix

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

45 lines
859 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchPypi
, pytest
, pytest-asyncio
, pytestCheckHook
, setuptools-scm
}:
buildPythonPackage rec {
pname = "pytest-mock";
version = "3.7.0";
2019-02-14 08:37:27 +01:00
src = fetchPypi {
inherit pname version;
hash = "sha256-URK9ksyfGG7pbhqS78hJaepJSTnDrq05xQ9CHEzGlTQ=";
};
nativeBuildInputs = [ setuptools-scm ];
propagatedBuildInputs = [
pytest
];
checkInputs = [
pytest-asyncio
pytestCheckHook
];
disabledTests = [
# output of pytest has changed
"test_used_with_"
"test_plain_stopall"
];
pythonImportsCheck = [ "pytest_mock" ];
meta = with lib; {
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; [ dotlambda ];
};
}