···
-
hash = "sha256-dGh2D3LB9BB74bKyhUvAAEAeo2pp2u02+5ZqHhmnoSQ=";
-
nativeCheckInputs = [ pytestCheckHook ];
-
# Hack needed to make pytest + cython work
-
# https://github.com/NixOS/nixpkgs/pull/82410#issuecomment-827186298
-
export HOME=$(mktemp -d)
-
cp -r $TMP/$sourceRoot/tests $HOME
-
# locale settings used by upstream, has the effect of skipping
-
# otherwise-failing tests on darwin
pythonImportsCheck = [ "cwcwidth" ];
description = "Python bindings for wc(s)width";
homepage = "https://github.com/sebastinas/cwcwidth";
-
changelog = "https://github.com/sebastinas/cwcwidth/blob/main/CHANGELOG.md";
-
license = licenses.mit;
···
+
src = fetchFromGitHub {
+
hash = "sha256-JrzItV+nCpQCz9MM1pcq5FtGZOsWNbgAra6i5WT4Mcg=";
+
# prevent import shadow
+
# locale settings used by upstream, has the effect of skipping otherwise-failing tests on darwin
+
disabledTests = lib.optionals stdenv.hostPlatform.isDarwin [
+
# Despite setting the locales above, this test fails with:
+
# AssertionError: Tuples differ: (1, 1, 1, 1) != (1, 1, 1, 0)
+
"test_combining_spacing"
pythonImportsCheck = [ "cwcwidth" ];
description = "Python bindings for wc(s)width";
homepage = "https://github.com/sebastinas/cwcwidth";
+
changelog = "https://github.com/sebastinas/cwcwidth/blob/v${version}/CHANGELOG.md";
+
license = lib.licenses.mit;