Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.2 kB · 56 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657{ lib, stdenv, buildPythonPackage, fetchFromGitHub, cython, setuptools, pytestCheckHook,}:
buildPythonPackage rec { pname = "cwcwidth"; version = "0.1.10"; pyproject = true;
src = fetchFromGitHub { owner = "sebastinas"; repo = "cwcwidth"; tag = "v${version}"; hash = "sha256-JrzItV+nCpQCz9MM1pcq5FtGZOsWNbgAra6i5WT4Mcg="; };
build-system = [ cython setuptools ];
nativeCheckInputs = [ pytestCheckHook ];
preCheck = '' # prevent import shadow rm -rf cwcwidth
# locale settings used by upstream, has the effect of skipping otherwise-failing tests on darwin export LC_ALL='C.UTF-8' export LANG='C.UTF-8' '';
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" ];
meta = { 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; maintainers = [ ]; };}