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