depot/third_party/nixpkgs/pkgs/development/python-modules/testfixtures/default.nix
Default email 58849dfc4f Project import generated by Copybara.
GitOrigin-RevId: 21c937f8cb1e6adcfeb36dfd6c90d9d9bfab1d28
2021-08-27 16:25:00 +02:00

49 lines
918 B
Nix

{ lib
, buildPythonPackage
, fetchpatch
, fetchPypi
, isPy27
, mock
, pytestCheckHook
, sybil
, twisted
, zope_component
}:
buildPythonPackage rec {
pname = "testfixtures";
version = "6.18.1";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-CmQic39tibRc3vHi31V29SrQ9QeVYALOECDaqfRCEdY=";
};
checkInputs = [
pytestCheckHook
mock
sybil
zope_component
twisted
];
doCheck = !isPy27;
disabledTestPaths = [
# Django is too much hasle to setup at the moment
"testfixtures/tests/test_django"
];
pytestFlagsArray = [
"testfixtures/tests"
];
pythonImportsCheck = [ "testfixtures" ];
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 ];
};
}