Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / backports-datetime-fromisoformat / default.nix
blobfebf3d50bb4f3a2336b9eaca4f4fc1a7c89cc516
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
5 # build-system
6 , setuptools
8 # tests
9 , pytz
10 , pytestCheckHook
13 buildPythonPackage rec {
14   pname = "backports-datetime-fromisoformat";
15   version = "2.0.1";
16   pyproject = true;
18   src = fetchFromGitHub {
19     owner = "movermeyer";
20     repo = "backports.datetime_fromisoformat";
21     rev = "refs/tags/v${version}";
22     hash = "sha256-c3LCTOKva99+x96iLHNnL1e1Ft1M1CsjQX+nEqAlXUs=";
23   };
25   nativeBuildInputs = [
26     setuptools
27   ];
29   nativeCheckInputs = [
30     pytz
31     pytestCheckHook
32   ];
34   disabledTestPaths = [
35       # ModuleNotFoundError: No module named 'developmental_release'
36     "release/test_developmental_release.py"
37   ];
39   pythonImportsCheck = [
40     "backports.datetime_fromisoformat"
41   ];
43   meta = with lib; {
44     changelog = "https://github.com/movermeyer/backports.datetime_fromisoformat/releases/tag/v${version}";
45     description = "Backport of Python 3.11's datetime.fromisoformat";
46     homepage = "https://github.com/movermeyer/backports.datetime_fromisoformat";
47     license = licenses.mit;
48     maintainers = with maintainers; [ ];
49   };