diff options
-rw-r--r-- | maintainers/maintainer-list.nix | 6 | ||||
-rw-r--r-- | pkgs/development/python-modules/beautiful-date/default.nix | 39 | ||||
-rw-r--r-- | pkgs/top-level/python-packages.nix | 2 |
3 files changed, 47 insertions, 0 deletions
diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index b99333277213..f4cfa3a6c533 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -10889,6 +10889,12 @@ githubId = 613740; name = "Martin Baillie"; }; + mbalatsko = { + email = "mbalatsko@gmail.com"; + github = "mbalatsko"; + githubId = 15967073; + name = "Maksym Balatsko"; + }; mbbx6spp = { email = "me@susanpotter.net"; github = "mbbx6spp"; diff --git a/pkgs/development/python-modules/beautiful-date/default.nix b/pkgs/development/python-modules/beautiful-date/default.nix new file mode 100644 index 000000000000..5b114655bcbb --- /dev/null +++ b/pkgs/development/python-modules/beautiful-date/default.nix @@ -0,0 +1,39 @@ +{ 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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index a35ab01908d6..88312ac29767 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -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 }; |