{ lib , babel , buildPythonPackage , cssselect , fetchFromGitHub , glibcLocales , isodate , leather , lxml , nose , parsedatetime , pyicu , python-slugify , pytimeparse , pythonOlder , pytz }: buildPythonPackage rec { pname = "agate"; version = "1.9.1"; format = "setuptools"; disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "wireservice"; repo = pname; rev = "refs/tags/${version}"; hash = "sha256-I7jvZA/m06kUuUcfglySaroDbJ5wbgiF2lb84EFPmpw="; }; propagatedBuildInputs = [ babel isodate leather parsedatetime python-slugify pytimeparse ]; nativeCheckInputs = [ cssselect glibcLocales lxml nose pyicu pytz ]; checkPhase = '' LC_ALL="en_US.UTF-8" nosetests tests ''; pythonImportsCheck = [ "agate" ]; meta = with lib; { description = "Python data analysis library that is optimized for humans instead of machines"; homepage = "https://github.com/wireservice/agate"; changelog = "https://github.com/wireservice/agate/blob/${version}/CHANGELOG.rst"; license = with licenses; [ mit ]; maintainers = with maintainers; [ vrthra ]; }; }