2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
unittestCheckHook,
|
|
|
|
pytz,
|
|
|
|
pyyaml,
|
|
|
|
argparse,
|
2023-10-09 19:29:22 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
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=";
|
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
propagatedBuildInputs = [ pytz ];
|
2023-10-09 19:29:22 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|