Files
nixpkgs/pkgs/development/python-modules/agate/default.nix
T

67 lines
1.2 KiB
Nix

{
lib,
stdenv,
babel,
buildPythonPackage,
cssselect,
fetchFromGitHub,
glibcLocales,
isodate,
leather,
lxml,
parsedatetime,
pyicu,
pytestCheckHook,
python-slugify,
pythonOlder,
pytimeparse,
setuptools,
}:
buildPythonPackage rec {
pname = "agate";
version = "1.14.0";
pyproject = true;
src = fetchFromGitHub {
owner = "wireservice";
repo = "agate";
tag = version;
hash = "sha256-Pp5pUOycDGzymIvwWoDAaOomTsxAfDNdSGwOG5a25Hc=";
};
build-system = [ setuptools ];
dependencies = [
babel
isodate
leather
parsedatetime
python-slugify
pytimeparse
];
nativeCheckInputs = [
cssselect
glibcLocales
lxml
pyicu
pytestCheckHook
];
disabledTests = lib.optionals stdenv.isDarwin [
# Output is slightly different on macOS
"test_cast_format_locale"
];
pythonImportsCheck = [ "agate" ];
meta = {
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 lib.licenses; [ mit ];
maintainers = [ ];
};
}