Something went wrong. Try again.
lol
Something went wrong. Try again.
1.2 kB · 53 lines
Nix
at master
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354{ lib, buildPythonPackage, fetchFromGitHub, cython, pkgconfig, setuptools, wheel, pytestCheckHook, python,}:
buildPythonPackage rec { pname = "faust-cchardet"; version = "2.1.19"; pyproject = true;
src = fetchFromGitHub { owner = "faust-streaming"; repo = "cChardet"; tag = "v${version}"; fetchSubmodules = true; hash = "sha256-yY6YEhXC4S47rxnkKAta4m16IVGn7gkHSt056bYOYJ4="; };
nativeBuildInputs = [ cython pkgconfig setuptools wheel ];
postFixup = '' # fake cchardet distinfo, so packages that depend on cchardet # accept it as a drop-in replacement ln -s $out/${python.sitePackages}/{faust_,}cchardet-${version}.dist-info '';
pythonImportsCheck = [ "cchardet" ];
nativeCheckInputs = [ pytestCheckHook ];
meta = { changelog = "https://github.com/faust-streaming/cChardet/blob/${src.rev}/CHANGES.rst"; description = "High-speed universal character encoding detector"; mainProgram = "cchardetect"; homepage = "https://github.com/faust-streaming/cChardet"; license = lib.licenses.mpl11; maintainers = with lib.maintainers; [ dotlambda ]; };}