Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / backports-datetime-fromisoformat / default.nix
blob88e140ad82f5c95a18b3dc8ba1072f4efff4b50b
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , pytz
5 , unittestCheckHook
6 }:
8 buildPythonPackage rec {
9   pname = "backports-datetime-fromisoformat";
10   version = "2.0.0";
11   format = "setuptools";
13   src = fetchFromGitHub {
14     owner = "movermeyer";
15     repo = "backports.datetime_fromisoformat";
16     rev = "refs/tags/v${version}";
17     hash = "sha256-aHF3E/fLN+j/T4W9lvuVSMy6iRSEn+ARWmL01rY+ixs=";
18   };
20   nativeCheckInputs = [
21     pytz
22     unittestCheckHook
23   ];
25   pythonImportsCheck = [
26     "backports.datetime_fromisoformat"
27   ];
29   meta = with lib; {
30     changelog = "https://github.com/movermeyer/backports.datetime_fromisoformat/releases/tag/v${version}";
31     description = "Backport of Python 3.11's datetime.fromisoformat";
32     homepage = "https://github.com/movermeyer/backports.datetime_fromisoformat";
33     license = licenses.mit;
34     maintainers = with maintainers; [ ];
35   };