diff --git a/pkgs/development/python-modules/python-datemath/default.nix b/pkgs/development/python-modules/python-datemath/default.nix index b13b600121ae..513750e533de 100644 --- a/pkgs/development/python-modules/python-datemath/default.nix +++ b/pkgs/development/python-modules/python-datemath/default.nix @@ -9,7 +9,7 @@ setuptools, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "python-datemath"; version = "3.0.3"; pyproject = true; @@ -17,7 +17,7 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "nickmaccarthy"; repo = "python-datemath"; - tag = "v${version}"; + tag = "v${finalAttrs.version}"; hash = "sha256-VwdY6Gmbmoy7EKZjUlWj56uSiE0OdegPiQv+rmigkq8="; }; @@ -35,11 +35,16 @@ buildPythonPackage rec { pythonImportsCheck = [ "datemath" ]; + disabledTests = [ + # Test relies on timezone data that may not be present in the test environment + "testTimezone" + ]; + 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 ]; + changelog = "https://github.com/nickmaccarthy/python-datemath/blob/v${finalAttrs.src.tag}/CHANGELOG.md"; + license = lib.licenses.asl20; maintainers = with lib.maintainers; [ fab ]; }; -} +})