10 buildPythonPackage rec {
16 inherit pname version;
17 hash = "sha256-8Z0RoBSNSoys0GTJbpO8qM40FaGGroIEA49F4Qjbdrg=";
25 nativeCheckInputs = [ pytestCheckHook ];
27 # Hack needed to make pytest + cython work
28 # https://github.com/NixOS/nixpkgs/pull/82410#issuecomment-827186298
29 export HOME=$(mktemp -d)
30 cp -r $TMP/$sourceRoot/tests $HOME
33 # locale settings used by upstream, has the effect of skipping
34 # otherwise-failing tests on darwin
35 export LC_ALL='C.UTF-8'
40 pythonImportsCheck = [ "cwcwidth" ];
43 description = "Python bindings for wc(s)width";
44 homepage = "https://github.com/sebastinas/cwcwidth";
45 changelog = "https://github.com/sebastinas/cwcwidth/blob/main/CHANGELOG.md";
46 license = licenses.mit;