fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
68 lines
1.2 KiB
Nix
68 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
babel,
|
|
buildPythonPackage,
|
|
cssselect,
|
|
fetchFromGitHub,
|
|
glibcLocales,
|
|
isodate,
|
|
leather,
|
|
lxml,
|
|
parsedatetime,
|
|
pyicu,
|
|
pynose,
|
|
python-slugify,
|
|
pythonOlder,
|
|
pytimeparse,
|
|
pytz,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "agate";
|
|
version = "1.9.1";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "wireservice";
|
|
repo = "agate";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-I7jvZA/m06kUuUcfglySaroDbJ5wbgiF2lb84EFPmpw=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
babel
|
|
isodate
|
|
leather
|
|
parsedatetime
|
|
python-slugify
|
|
pytimeparse
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
cssselect
|
|
glibcLocales
|
|
lxml
|
|
pynose
|
|
pyicu
|
|
pytz
|
|
];
|
|
|
|
checkPhase = ''
|
|
LC_ALL="en_US.UTF-8" nosetests tests
|
|
'';
|
|
|
|
pythonImportsCheck = [ "agate" ];
|
|
|
|
meta = with lib; {
|
|
description = "Python data analysis library that is optimized for humans instead of machines";
|
|
homepage = "https://github.com/wireservice/agate";
|
|
changelog = "https://github.com/wireservice/agate/blob/${version}/CHANGELOG.rst";
|
|
license = with licenses; [ mit ];
|
|
maintainers = with maintainers; [ vrthra ];
|
|
};
|
|
}
|