Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / freezegun / default.nix
blob2279e70ada6a89551567d4a6b79a08eab7f3581f
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , pytestCheckHook
5 , python-dateutil
6 , pythonOlder
7 , setuptools
8 }:
10 buildPythonPackage rec {
11   pname = "freezegun";
12   version = "1.4.0";
13   pyproject = true;
15   disabled = pythonOlder "3.7";
17   src = fetchPypi {
18     inherit pname version;
19     hash = "sha256-EJObC6D/Wtrs87BqXC9zBx2WeOUHxertsjx2HVasd0s=";
20   };
22   nativeBuildInputs = [
23     setuptools
24   ];
26   propagatedBuildInputs = [
27     python-dateutil
28   ];
30   nativeCheckInputs = [
31     pytestCheckHook
32   ];
34   pythonImportsCheck = [
35     "freezegun"
36   ];
38   meta = with lib; {
39     description = "Library that allows your Python tests to travel through time";
40     homepage = "https://github.com/spulec/freezegun";
41     changelog = "https://github.com/spulec/freezegun/blob/${version}/CHANGELOG";
42     license = licenses.asl20;
43     maintainers = with maintainers; [ fab ];
44   };