Commit a04ec10a authored by Maksym Balatsko's avatar Maksym Balatsko
Browse files

python3Packages.beautiful-date: init at 2.2.0

parent 444da4c5
Loading
Loading
Loading
Loading
+39 −0
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, fetchFromGitHub
, python-dateutil
, pytestCheckHook
, pythonOlder
}:

buildPythonPackage rec {
  pname = "beautiful-date";
  version = "2.2.0";
  format = "setuptools";

  disable = pythonOlder "3.6";

  src = fetchFromGitHub {
    owner = "kuzmoyev";
    repo = "beautiful-date";
    rev = "v${version}";
    hash = "sha256-5xRmHaAPf1ps75cOINHkHT1aYb5UGLZGl0OHVQaMES0=";
  };

  propagatedBuildInputs = [
    python-dateutil
  ];

  nativeCheckInputs = [
    pytestCheckHook
  ];

  pythonImportsCheck = [ "beautiful_date" ];

  meta = with lib; {
    description = "Simple and beautiful way to create date and datetime objects in Python";
    homepage = "https://github.com/kuzmoyev/beautiful-date";
    license = licenses.mit;
    maintainers = with maintainers; [ mbalatsko ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -1336,6 +1336,8 @@ self: super: with self; {

  beartype = callPackage ../development/python-modules/beartype { };

  beautiful-date = callPackage ../development/python-modules/beautiful-date { };

  beautifulsoup4 = callPackage ../development/python-modules/beautifulsoup4 {
    inherit (python.pythonForBuild.pkgs) sphinxHook; # hook splicing broken since #194205
  };