1{ lib
2, babel
3, buildPythonPackage
4, cssselect
5, fetchFromGitHub
6, glibcLocales
7, isodate
8, leather
9, lxml
10, nose
11, parsedatetime
12, pyicu
13, python-slugify
14, pytimeparse
15, pythonOlder
16, pytz
17}:
18
19buildPythonPackage rec {
20 pname = "agate";
21 version = "1.7.1";
22 format = "setuptools";
23
24 disabled = pythonOlder "3.7";
25
26 src = fetchFromGitHub {
27 owner = "wireservice";
28 repo = pname;
29 rev = "refs/tags/${version}";
30 hash = "sha256-7Ew9bgeheymCL8xXSW5li0LdFvGYb/7gPxmC4w6tHvM=";
31 };
32
33 propagatedBuildInputs = [
34 babel
35 isodate
36 leather
37 parsedatetime
38 python-slugify
39 pytimeparse
40 ];
41
42 nativeCheckInputs = [
43 cssselect
44 glibcLocales
45 lxml
46 nose
47 pyicu
48 pytz
49 ];
50
51 checkPhase = ''
52 LC_ALL="en_US.UTF-8" nosetests tests
53 '';
54
55 pythonImportsCheck = [
56 "agate"
57 ];
58
59 meta = with lib; {
60 description = "Python data analysis library that is optimized for humans instead of machines";
61 homepage = "https://github.com/wireservice/agate";
62 changelog = "https://github.com/wireservice/agate/blob/${version}/CHANGELOG.rst";
63 license = with licenses; [ mit ];
64 maintainers = with maintainers; [ vrthra ];
65 };
66}