Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, freezegun 5, hatchling 6, pytest 7, pytestCheckHook 8, pythonOlder 9}: 10 11buildPythonPackage rec { 12 pname = "pytest-freezer"; 13 version = "0.4.6"; 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-0JZv6MavRceAV+ZOetCVxJEyttd5W3PCts6Fz2KQsh0="; 23 }; 24 25 nativeBuildInputs = [ 26 hatchling 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}