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