Diff: pytest-dev/pytest-freezer@refs/tags/0.4.8...0.4.9 Changelog: https://github.com/pytest-dev/pytest-freezer/releases/tag/0.4.9
44 lines
947 B
Nix
44 lines
947 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
flit-core,
|
|
freezegun,
|
|
pytest,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pytest-freezer";
|
|
version = "0.4.9";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pytest-dev";
|
|
repo = "pytest-freezer";
|
|
tag = version;
|
|
hash = "sha256-WJGwkON/RAiUiGzNkeqjzch4CEr6mPXij5dqz1ncRXs=";
|
|
};
|
|
|
|
build-system = [ flit-core ];
|
|
|
|
buildInputs = [ pytest ];
|
|
|
|
dependencies = [ freezegun ];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "pytest_freezer" ];
|
|
|
|
meta = with lib; {
|
|
description = "Pytest plugin providing a fixture interface for spulec/freezegun";
|
|
homepage = "https://github.com/pytest-dev/pytest-freezer";
|
|
changelog = "https://github.com/pytest-dev/pytest-freezer/releases/tag/${version}";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|