`buildDotnetModule`: add support for installing pre-release tools (#374663)
[NixPkgs.git] / pkgs / development / python-modules / beautiful-date / default.nix
blob8fcc791a8fd21d8974020eaddbb94de41c3df77a
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   freezegun,
6   python-dateutil,
7   pytestCheckHook,
8   pythonOlder,
9 }:
11 buildPythonPackage rec {
12   pname = "beautiful-date";
13   version = "2.3.0";
14   format = "setuptools";
16   disabled = pythonOlder "3.7";
18   src = fetchFromGitHub {
19     owner = "kuzmoyev";
20     repo = "beautiful-date";
21     tag = "v${version}";
22     hash = "sha256-e6YJBaDwWqVehxBPOvsIdV4FIXlIwj29H5untXGJvT0=";
23   };
25   propagatedBuildInputs = [ python-dateutil ];
27   nativeCheckInputs = [
28     freezegun
29     pytestCheckHook
30   ];
32   pythonImportsCheck = [ "beautiful_date" ];
34   meta = with lib; {
35     description = "Simple and beautiful way to create date and datetime objects";
36     homepage = "https://github.com/kuzmoyev/beautiful-date";
37     license = licenses.mit;
38     maintainers = with maintainers; [ mbalatsko ];
39   };