7e47f3658e
GitOrigin-RevId: 1925c603f17fc89f4c8f6bf6f631a802ad85d784
48 lines
1 KiB
Nix
48 lines
1 KiB
Nix
{
|
|
lib,
|
|
arrow,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
freezegun,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
pytz,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "python-datemath";
|
|
version = "3.0.3";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "nickmaccarthy";
|
|
repo = "python-datemath";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-VwdY6Gmbmoy7EKZjUlWj56uSiE0OdegPiQv+rmigkq8=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [ arrow ];
|
|
|
|
nativeCheckInputs = [
|
|
freezegun
|
|
pytestCheckHook
|
|
pytz
|
|
];
|
|
|
|
pytestFlagsArray = [ "tests.py" ];
|
|
|
|
pythonImportsCheck = [ "datemath" ];
|
|
|
|
meta = {
|
|
description = "Python module to emulate the date math used in SOLR and Elasticsearch";
|
|
homepage = "https://github.com/nickmaccarthy/python-datemath";
|
|
changelog = "https://github.com/nickmaccarthy/python-datemath/blob/v${version}/CHANGELOG.md";
|
|
license = with lib.licenses; [ asl20 ];
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
};
|
|
}
|