depot/third_party/nixpkgs/pkgs/development/python-modules/pydateinfer/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

39 lines
834 B
Nix

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