python3Packages.udatetime: enable tests

This commit is contained in:
Harinn
2026-07-29 22:06:43 +07:00
parent 92e86d0f21
commit e38f367e6a
@@ -1,8 +1,9 @@
{
lib,
buildPythonPackage,
fetchPypi,
fetchFromGitHub,
setuptools,
pytestCheckHook,
}:
buildPythonPackage (finalAttrs: {
@@ -12,16 +13,21 @@ buildPythonPackage (finalAttrs: {
__structuredAttrs = true;
src = fetchPypi {
pname = "udatetime";
inherit (finalAttrs) version;
hash = "sha256-sQvFVwaZpDinLitaZOdr2MKO4779FvIJOHpVB/oLgwE=";
src = fetchFromGitHub {
owner = "freach";
repo = "udatetime";
tag = finalAttrs.version;
hash = "sha256-1TGLdw8yq+FmdfKin2e9SKJTA1TDNmLXmKRWcq0qTnw=";
};
build-system = [ setuptools ];
# tests not included on pypi
doCheck = false;
nativeCheckInputs = [ pytestCheckHook ];
# shadows the installed package holding the compiled extension
preCheck = ''
rm -r udatetime
'';
pythonImportsCheck = [ "udatetime" ];