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