5e7c2d6cef
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
34 lines
663 B
Nix
34 lines
663 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, python-dateutil
|
|
, pytz
|
|
}:
|
|
|
|
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" ];
|
|
|
|
# no tests on Pypi, no tags on github
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
description = "Transform timestamps with a simple DSL";
|
|
homepage = "https://github.com/zartstrom/snaptime";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ pbsds ];
|
|
};
|
|
}
|