Files
nixpkgs/pkgs/development/python-modules/faust-cchardet/default.nix
T
Michael Daniels 075e8c2c4f treewide: change 'format = "pyproject";' to 'pyproject = true;'
This is almost all find-and-replace.

I manually edited:
* pkgs/development/python-modules/notifications-android-tv/default.nix,
* pkgs/servers/home-assistant/default.nix,
* pkgs/development/tools/continuous-integration/buildbot/master.nix

A few files have not been changed in this PR because they would cause rebuilds.

This PR should have 0 rebuilds.
2026-01-12 17:50:35 -05:00

55 lines
1.2 KiB
Nix

{
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
ivan
];
};
}