depot/third_party/nixpkgs/pkgs/development/python-modules/agate/default.nix
Default email 94427deb9d Project import generated by Copybara.
GitOrigin-RevId: f91ee3065de91a3531329a674a45ddcb3467a650
2023-05-24 16:37:59 +03:00

66 lines
1.1 KiB
Nix

{ lib
, babel
, buildPythonPackage
, cssselect
, fetchFromGitHub
, glibcLocales
, isodate
, leather
, lxml
, nose
, parsedatetime
, pyicu
, python-slugify
, pytimeparse
, pythonOlder
, pytz
}:
buildPythonPackage rec {
pname = "agate";
version = "1.7.1";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "wireservice";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-7Ew9bgeheymCL8xXSW5li0LdFvGYb/7gPxmC4w6tHvM=";
};
propagatedBuildInputs = [
babel
isodate
leather
parsedatetime
python-slugify
pytimeparse
];
nativeCheckInputs = [
cssselect
glibcLocales
lxml
nose
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 ];
};
}