13 buildPythonPackage rec {
14 pname = "python-datemath";
18 disabled = pythonOlder "3.8";
20 src = fetchFromGitHub {
21 owner = "nickmaccarthy";
22 repo = "python-datemath";
23 rev = "refs/tags/v${version}";
24 hash = "sha256-VwdY6Gmbmoy7EKZjUlWj56uSiE0OdegPiQv+rmigkq8=";
27 build-system = [ setuptools ];
29 dependencies = [ arrow ];
37 pytestFlagsArray = [ "tests.py" ];
39 pythonImportsCheck = [ "datemath" ];
42 description = "Python module to emulate the date math used in SOLR and Elasticsearch";
43 homepage = "https://github.com/nickmaccarthy/python-datemath";
44 changelog = "https://github.com/nickmaccarthy/python-datemath/blob/v${version}/CHANGELOG.md";
45 license = with lib.licenses; [ asl20 ];
46 maintainers = with lib.maintainers; [ fab ];