depot/third_party/nixpkgs/pkgs/development/python-modules/testfixtures/default.nix
Default email 1ffc76754d Project import generated by Copybara.
GitOrigin-RevId: a5cc7d3197705f933d88e97c0c61849219ce76c1
2020-07-18 18:06:22 +02:00

30 lines
935 B
Nix

{ lib, buildPythonPackage, fetchPypi, fetchpatch, isPy27
, mock, pytest, sybil, zope_component, twisted }:
buildPythonPackage rec {
pname = "testfixtures";
version = "6.14.1";
src = fetchPypi {
inherit pname version;
sha256 = "0rh38zj8wywgqlsi5j75c7drpqhkrg50qknj1kdmvg4kdlab7ljq";
};
checkInputs = [ pytest mock sybil zope_component twisted ];
doCheck = !isPy27;
checkPhase = ''
# django is too much hasle to setup at the moment
pytest -W ignore::DeprecationWarning \
--ignore=testfixtures/tests/test_django \
-k 'not (log_then_patch or our_wrap_dealing_with_mock_patch or patch_with_dict)' \
testfixtures/tests
'';
meta = with lib; {
homepage = "https://github.com/Simplistix/testfixtures";
description = "A collection of helpers and mock objects for unit tests and doc tests";
license = licenses.mit;
maintainers = with maintainers; [ siriobalmelli ];
};
}