Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

44 lines
806 B
Nix
Raw Permalink Normal View History

2025-10-09 14:15:47 +02:00
{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
pythonOlder,
cffi,
setuptools,
ukkonen,
}:
buildPythonPackage rec {
pname = "identify";
version = "2.6.15";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "pre-commit";
repo = "identify";
tag = "v${version}";
hash = "sha256-YA9DwtAFjFYkycCJjBDXgIE4FKTt3En7fvw5xe37GZU=";
};
build-system = [ setuptools ];
dependencies = [
cffi
pytestCheckHook
ukkonen
];
pythonImportsCheck = [ "identify" ];
meta = {
description = "File identification library for Python";
homepage = "https://github.com/pre-commit/identify";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
mainProgram = "identify-cli";
};
}