python311Packages.snaptime: init at 0.2.4

Packaged as a test dependency for maya.
This commit is contained in:
Martin Weinelt 2023-09-19 04:24:11 +02:00
parent 9838276068
commit aadcf41da0
2 changed files with 38 additions and 0 deletions

View file

@ -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; [ ];
};
}

View file

@ -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 { };