depot/third_party/nixpkgs/pkgs/development/python-modules/identify/default.nix
Default email 5e7c2d6cef Project import generated by Copybara.
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
2023-10-09 21:29:22 +02:00

40 lines
758 B
Nix

{ lib
, buildPythonPackage
, editdistance-s
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
, ukkonen
}:
buildPythonPackage rec {
pname = "identify";
version = "2.5.30";
format = "setuptools";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "pre-commit";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-e3+yjd3jrcv4hU+0vCTl+bAzlYcfTdhLHr93briFxdI=";
};
nativeCheckInputs = [
editdistance-s
pytestCheckHook
ukkonen
];
pythonImportsCheck = [
"identify"
];
meta = with lib; {
description = "File identification library for Python";
homepage = "https://github.com/chriskuehl/identify";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}