Files
nixpkgs/pkgs/development/python-modules/binaryornot/default.nix
Fabian Affolter 3dd12d975f python3Packages.binaryornot: 0.4.4 -> 0.6.0
This commit was automatically generated using update-python-libraries.
2026-10-08 18:50:13 +02:00

38 lines
820 B
Nix

{
lib,
buildPythonPackage,
chardet,
fetchPypi,
hatchling,
hypothesis,
}:
buildPythonPackage (finalAttrs: {
pname = "binaryornot";
version = "0.6.0";
pyproject = true;
__structuredAttrs = true;
src = fetchPypi {
inherit (finalAttrs) pname version;
hash = "sha256-zI1Xz6cddP+MKKdyZzTVOoUdAvrZ46VYH7gH+Yn3AvA=";
};
build-system = [ hatchling ];
dependencies = [ chardet ];
nativeCheckInputs = [ hypothesis ];
pythonImportsCheck = [ "binaryornot" ];
meta = {
description = "Ultra-lightweight pure Python package to check if a file is binary or text";
homepage = "https://github.com/audreyr/binaryornot";
changelog = "https://github.com/binaryornot/binaryornot/releases/tag/v${finalAttrs.version}";
license = lib.licenses.bsd3;
maintainers = [ ];
};
})