pythonPackages.testfixtures: 6.2.0 -> 6.3.0
This commit is contained in:
parent
55a8ea38da
commit
75a90b5a9b
|
@ -1,23 +1,33 @@
|
||||||
{ stdenv, buildPythonPackage, fetchPypi
|
{ stdenv, buildPythonPackage, fetchPypi, fetchpatch
|
||||||
, mock, manuel, pytest, sybil, zope_component }:
|
, mock, pytest, sybil, zope_component }:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "testfixtures";
|
pname = "testfixtures";
|
||||||
version = "6.2.0";
|
version = "6.3.0";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "7e4df89a8bf8b8905464160f08aff131a36f0b33654fe4f9e4387afe546eae25";
|
sha256 = "1x16xkw483nb1ngv74s7lgaj514pb1ldklal7kb7iwqbxcgnrh2k";
|
||||||
};
|
};
|
||||||
|
|
||||||
checkInputs = [ mock manuel pytest sybil zope_component ];
|
checkInputs = [ pytest mock sybil zope_component ];
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
# Fix tests for Python 3.7. Remove with the next release
|
||||||
|
(fetchpatch {
|
||||||
|
url = https://github.com/Simplistix/testfixtures/commit/6e8807543b804946aba58e2c9e92f5bdc3656a57.patch;
|
||||||
|
sha256 = "1584jz2qz04arx8z8f6d1l1vab7gi38k3akzm223rmp7j4m7yrii";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
# django is too much hasle to setup at the moment
|
# django is too much hasle to setup at the moment
|
||||||
pytest --ignore=testfixtures/tests/test_django testfixtures/tests
|
pytest -W ignore::DeprecationWarning --ignore=testfixtures/tests/test_django testfixtures/tests
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
homepage = "https://github.com/Simplistix/testfixtures";
|
homepage = https://github.com/Simplistix/testfixtures;
|
||||||
|
description = "A collection of helpers and mock objects for unit tests and doc tests";
|
||||||
|
license = licenses.mit;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue