1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, flit-core 5, freezegun 6, pytest 7, pytestCheckHook 8, pythonOlder 9}: 10 11buildPythonPackage rec { 12 pname = "pytest-freezer"; 13 version = "0.4.8"; 14 format = "pyproject"; 15 16 disabled = pythonOlder "3.6"; 17 18 src = fetchFromGitHub { 19 owner = "pytest-dev"; 20 repo = pname; 21 rev = "refs/tags/${version}"; 22 hash = "sha256-Eak6LNoyu2wvZbPaBBUO0UkyB9vni8YbsADGK0as7Cg="; 23 }; 24 25 nativeBuildInputs = [ 26 flit-core 27 ]; 28 29 buildInputs = [ 30 pytest 31 ]; 32 33 propagatedBuildInputs = [ 34 freezegun 35 ]; 36 37 nativeCheckInputs = [ 38 pytestCheckHook 39 ]; 40 41 pythonImportsCheck = [ 42 "pytest_freezer" 43 ]; 44 45 meta = with lib; { 46 description = "Pytest plugin providing a fixture interface for spulec/freezegun"; 47 homepage = "https://github.com/pytest-dev/pytest-freezer"; 48 changelog = "https://github.com/pytest-dev/pytest-freezer/releases/tag/${version}"; 49 license = licenses.mit; 50 maintainers = with maintainers; [ fab ]; 51 }; 52}