2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
babel,
|
|
|
|
buildPythonPackage,
|
|
|
|
cssselect,
|
|
|
|
fetchFromGitHub,
|
|
|
|
glibcLocales,
|
|
|
|
isodate,
|
|
|
|
leather,
|
|
|
|
lxml,
|
|
|
|
parsedatetime,
|
|
|
|
pyicu,
|
|
|
|
pynose,
|
|
|
|
python-slugify,
|
|
|
|
pythonOlder,
|
|
|
|
pytimeparse,
|
|
|
|
pytz,
|
|
|
|
setuptools,
|
2021-12-06 16:07:01 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "agate";
|
2024-01-25 14:12:00 +00:00
|
|
|
version = "1.9.1";
|
2024-04-21 15:54:59 +00:00
|
|
|
pyproject = true;
|
2021-12-06 16:07:01 +00:00
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "wireservice";
|
2024-04-21 15:54:59 +00:00
|
|
|
repo = "agate";
|
2023-05-24 13:37:59 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2024-01-25 14:12:00 +00:00
|
|
|
hash = "sha256-I7jvZA/m06kUuUcfglySaroDbJ5wbgiF2lb84EFPmpw=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
build-system = [ setuptools ];
|
2024-04-21 15:54:59 +00:00
|
|
|
|
|
|
|
dependencies = [
|
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
|
2024-04-21 15:54:59 +00:00
|
|
|
pynose
|
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
|
|
|
|
'';
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "agate" ];
|
2021-12-06 16:07:01 +00:00
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|