python3Packages.pydateinfer: init at 0.3.0

This commit is contained in:
Maksym Balatsko 2023-09-16 10:18:36 -07:00 committed by Yt
parent aeaa0a7be9
commit ff7daa5661
2 changed files with 42 additions and 0 deletions

View file

@ -0,0 +1,40 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, unittestCheckHook
, pytz
, pyyaml
, argparse
}:
buildPythonPackage rec {
pname = "pydateinfer";
version = "0.3.0";
format = "setuptools";
src = fetchFromGitHub {
owner = "wdm0006";
repo = "dateinfer";
rev = "${version},"; # yes the comma is required, this is correct name of git tag
hash = "sha256-0gy7wfT/uMTmpdIF2OPGVeUh+4yqJSI2Ebif0Lf/DLM=";
};
propagatedBuildInputs = [
pytz
];
preCheck = "cd dateinfer";
nativeCheckInputs = [
unittestCheckHook
pyyaml
argparse
];
pythonImportsCheck = [ "dateinfer" ];
meta = with lib; {
description = "Infers date format from examples";
homepage = "https://pypi.org/project/pydateinfer/";
license = licenses.asl20;
maintainers = with maintainers; [ mbalatsko ];
};
}

View file

@ -9053,6 +9053,8 @@ self: super: with self; {
pydata-sphinx-theme = callPackage ../development/python-modules/pydata-sphinx-theme { };
pydateinfer = callPackage ../development/python-modules/pydateinfer { };
pydbus = callPackage ../development/python-modules/pydbus { };
pydeck = callPackage ../development/python-modules/pydeck { };