1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, unittestCheckHook 5, pytz 6, pyyaml 7, argparse 8}: 9 10buildPythonPackage rec { 11 pname = "pydateinfer"; 12 version = "0.3.0"; 13 format = "setuptools"; 14 15 src = fetchFromGitHub { 16 owner = "wdm0006"; 17 repo = "dateinfer"; 18 rev = "${version},"; # yes the comma is required, this is correct name of git tag 19 hash = "sha256-0gy7wfT/uMTmpdIF2OPGVeUh+4yqJSI2Ebif0Lf/DLM="; 20 }; 21 22 propagatedBuildInputs = [ 23 pytz 24 ]; 25 26 preCheck = "cd dateinfer"; 27 nativeCheckInputs = [ 28 unittestCheckHook 29 pyyaml 30 argparse 31 ]; 32 pythonImportsCheck = [ "dateinfer" ]; 33 34 meta = with lib; { 35 description = "Infers date format from examples"; 36 homepage = "https://pypi.org/project/pydateinfer/"; 37 license = licenses.asl20; 38 maintainers = with maintainers; [ mbalatsko ]; 39 }; 40}