pythonPackages.tempora: enable tests
This commit is contained in:
parent
94ae9f4ed5
commit
5ac577f1a2
@ -1,5 +1,5 @@
|
|||||||
{ lib, buildPythonPackage, fetchPypi
|
{ lib, buildPythonPackage, fetchPypi
|
||||||
, setuptools_scm
|
, setuptools_scm, pytest, freezegun, backports_unittest-mock
|
||||||
, six, pytz, jaraco_functools }:
|
, six, pytz, jaraco_functools }:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
@ -11,12 +11,17 @@ buildPythonPackage rec {
|
|||||||
sha256 = "cb60b1d2b1664104e307f8e5269d7f4acdb077c82e35cd57246ae14a3427d2d6";
|
sha256 = "cb60b1d2b1664104e307f8e5269d7f4acdb077c82e35cd57246ae14a3427d2d6";
|
||||||
};
|
};
|
||||||
|
|
||||||
doCheck = false;
|
|
||||||
|
|
||||||
buildInputs = [ setuptools_scm ];
|
buildInputs = [ setuptools_scm ];
|
||||||
|
|
||||||
propagatedBuildInputs = [ six pytz jaraco_functools ];
|
propagatedBuildInputs = [ six pytz jaraco_functools ];
|
||||||
|
|
||||||
|
checkInputs = [ pytest freezegun backports_unittest-mock ];
|
||||||
|
|
||||||
|
checkPhase = ''
|
||||||
|
substituteInPlace pytest.ini --replace "--flake8" ""
|
||||||
|
pytest
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Objects and routines pertaining to date and time";
|
description = "Objects and routines pertaining to date and time";
|
||||||
homepage = https://github.com/jaraco/tempora;
|
homepage = https://github.com/jaraco/tempora;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user