2021-12-06 16:07:01 +00:00
|
|
|
{ lib
|
2022-05-18 14:49:53 +00:00
|
|
|
, babel
|
2021-12-06 16:07:01 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, cssselect
|
|
|
|
, fetchFromGitHub
|
|
|
|
, glibcLocales
|
|
|
|
, isodate
|
|
|
|
, leather
|
|
|
|
, lxml
|
|
|
|
, nose
|
|
|
|
, parsedatetime
|
2023-01-11 07:51:40 +00:00
|
|
|
, pyicu
|
2021-12-06 16:07:01 +00:00
|
|
|
, python-slugify
|
|
|
|
, pytimeparse
|
|
|
|
, pythonOlder
|
|
|
|
, pytz
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "agate";
|
2023-05-24 13:37:59 +00:00
|
|
|
version = "1.7.1";
|
2021-12-06 16:07:01 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "wireservice";
|
|
|
|
repo = pname;
|
2023-05-24 13:37:59 +00:00
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
hash = "sha256-7Ew9bgeheymCL8xXSW5li0LdFvGYb/7gPxmC4w6tHvM=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2022-05-18 14:49:53 +00:00
|
|
|
babel
|
2021-12-06 16:07:01 +00:00
|
|
|
isodate
|
|
|
|
leather
|
|
|
|
parsedatetime
|
|
|
|
python-slugify
|
|
|
|
pytimeparse
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-12-06 16:07:01 +00:00
|
|
|
cssselect
|
|
|
|
glibcLocales
|
|
|
|
lxml
|
|
|
|
nose
|
2023-01-11 07:51:40 +00:00
|
|
|
pyicu
|
2021-12-06 16:07:01 +00:00
|
|
|
pytz
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
LC_ALL="en_US.UTF-8" nosetests tests
|
|
|
|
'';
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"agate"
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
2021-12-06 16:07:01 +00:00
|
|
|
description = "Python data analysis library that is optimized for humans instead of machines";
|
|
|
|
homepage = "https://github.com/wireservice/agate";
|
2023-05-24 13:37:59 +00:00
|
|
|
changelog = "https://github.com/wireservice/agate/blob/${version}/CHANGELOG.rst";
|
2021-12-06 16:07:01 +00:00
|
|
|
license = with licenses; [ mit ];
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ vrthra ];
|
|
|
|
};
|
|
|
|
}
|