From aadcf41da094eb0774a68c73f6fcd508a8a7176d Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Tue, 19 Sep 2023 04:24:11 +0200 Subject: [PATCH] python311Packages.snaptime: init at 0.2.4 Packaged as a test dependency for maya. --- .../python-modules/snaptime/default.nix | 36 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 38 insertions(+) create mode 100644 pkgs/development/python-modules/snaptime/default.nix diff --git a/pkgs/development/python-modules/snaptime/default.nix b/pkgs/development/python-modules/snaptime/default.nix new file mode 100644 index 000000000000..ce43b0e59fba --- /dev/null +++ b/pkgs/development/python-modules/snaptime/default.nix @@ -0,0 +1,36 @@ +{ lib +, buildPythonPackage +, fetchPypi +, python-dateutil +, pytz +, pytestCheckHook +}: + +buildPythonPackage rec { + pname = "snaptime"; + version = "0.2.4"; + format = "setuptools"; + + src = fetchPypi { + inherit pname version; + hash = "sha256-4/HriQQ9WNMHIauYy2UCPxpMJ0DjsZdwQpixY8ktUIs="; + }; + + propagatedBuildInputs = [ + python-dateutil + pytz + ]; + + pythonImportsCheck = [ + "snaptime" + ]; + + doCheck = false; # git has tests, but no tags :( + + meta = with lib; { + description = "Transform timestamps with a simple DSL"; + homepage = "https://github.com/zartstrom/snaptime"; + license = with licenses; [ mit ]; + maintainers = with maintainers; [ ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 55becaba3e44..313ff7f18c6d 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -12101,6 +12101,8 @@ self: super: with self; { snapshottest = callPackage ../development/python-modules/snapshottest { }; + snaptime = callPackage ../development/python-modules/snaptime { }; + sniffio = callPackage ../development/python-modules/sniffio { }; snitun = callPackage ../development/python-modules/snitun { };