nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 flit-core,
6 freezegun,
7 pytest,
8 pytestCheckHook,
9}:
10
11buildPythonPackage rec {
12 pname = "pytest-freezer";
13 version = "0.4.9";
14 pyproject = true;
15
16 src = fetchFromGitHub {
17 owner = "pytest-dev";
18 repo = "pytest-freezer";
19 tag = version;
20 hash = "sha256-WJGwkON/RAiUiGzNkeqjzch4CEr6mPXij5dqz1ncRXs=";
21 };
22
23 build-system = [ flit-core ];
24
25 buildInputs = [ pytest ];
26
27 dependencies = [ freezegun ];
28
29 nativeCheckInputs = [ pytestCheckHook ];
30
31 pythonImportsCheck = [ "pytest_freezer" ];
32
33 meta = {
34 description = "Pytest plugin providing a fixture interface for spulec/freezegun";
35 homepage = "https://github.com/pytest-dev/pytest-freezer";
36 changelog = "https://github.com/pytest-dev/pytest-freezer/releases/tag/${version}";
37 license = lib.licenses.mit;
38 maintainers = with lib.maintainers; [ fab ];
39 };
40}