Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.2 kB · 46 lines
Nix
at gcc-offload
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647{ lib, buildPythonPackage, fetchPypi, pythonOlder, setuptools, numpy, pytestCheckHook,}:
buildPythonPackage rec { pname = "py3langid"; version = "0.3.0"; pyproject = true;
disabled = pythonOlder "3.6";
src = fetchPypi { inherit pname version; hash = "sha256-CodaAxpYqvnb2nu4KF/XXoAae9J2IW/6vgN5AdS0Sew="; };
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [ numpy ];
nativeCheckInputs = [ pytestCheckHook ];
# nixify path to the courlan binary in the test suite postPatch = '' substituteInPlace tests/test_langid.py --replace "'langid'" "'$out/bin/langid'" substituteInPlace pyproject.toml --replace-fail \ 'numpy >= 2.0.0' numpy '';
pythonImportsCheck = [ "py3langid" ];
meta = with lib; { description = "Fork of the language identification tool langid.py, featuring a modernized codebase and faster execution times"; mainProgram = "langid"; homepage = "https://github.com/adbar/py3langid"; changelog = "https://github.com/adbar/py3langid/blob/v${version}/HISTORY.rst"; license = licenses.bsd3; maintainers = with maintainers; [ jokatzke ]; };}