mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-20 00:53:12 +03:00
pythonPackages.pytest-freezegun: run tests
This commit is contained in:
parent
54fb7a5800
commit
090664f85c
@ -1,18 +1,21 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, isPy27
|
||||||
|
, fetchFromGitHub
|
||||||
, freezegun
|
, freezegun
|
||||||
, pytest
|
, pytest
|
||||||
|
, pytestCheckHook
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "pytest-freezegun";
|
pname = "pytest-freezegun";
|
||||||
version = "0.4.2";
|
version = "0.4.2";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchFromGitHub {
|
||||||
inherit pname version;
|
owner = "ktosiek";
|
||||||
extension = "zip";
|
repo = "pytest-freezegun";
|
||||||
sha256 = "19c82d5633751bf3ec92caa481fb5cffaac1787bd485f0df6436fd6242176949";
|
rev = version;
|
||||||
|
sha256 = "10c4pbh03b4s1q8cjd75lr0fvyf9id0zmdk29566qqsmaz28npas";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
@ -20,6 +23,10 @@ buildPythonPackage rec {
|
|||||||
pytest
|
pytest
|
||||||
];
|
];
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Wrap tests with fixtures in freeze_time";
|
description = "Wrap tests with fixtures in freeze_time";
|
||||||
homepage = "https://github.com/ktosiek/pytest-freezegun";
|
homepage = "https://github.com/ktosiek/pytest-freezegun";
|
||||||
|
Loading…
Reference in New Issue
Block a user