depot/third_party/nixpkgs/pkgs/development/python-modules/beautiful-date/default.nix
Default email 5e7c2d6cef Project import generated by Copybara.
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
2023-10-09 21:29:22 +02:00

43 lines
849 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, freezegun
, python-dateutil
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "beautiful-date";
version = "2.3.0";
format = "setuptools";
disable = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "kuzmoyev";
repo = "beautiful-date";
rev = "refs/tags/v${version}";
hash = "sha256-e6YJBaDwWqVehxBPOvsIdV4FIXlIwj29H5untXGJvT0=";
};
propagatedBuildInputs = [
python-dateutil
];
nativeCheckInputs = [
freezegun
pytestCheckHook
];
pythonImportsCheck = [
"beautiful_date"
];
meta = with lib; {
description = "Simple and beautiful way to create date and datetime objects";
homepage = "https://github.com/kuzmoyev/beautiful-date";
license = licenses.mit;
maintainers = with maintainers; [ mbalatsko ];
};
}