2021-02-28 11:14:36 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pytestCheckHook
|
2021-07-02 05:21:25 +01:00
|
|
|
, editdistance-s
|
2021-02-28 11:14:36 +00:00
|
|
|
}:
|
2018-07-30 19:28:24 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "identify";
|
2021-10-30 16:34:40 +01:00
|
|
|
version = "2.3.1";
|
2018-07-30 19:28:24 +01:00
|
|
|
|
2021-02-28 11:14:36 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pre-commit";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-10-30 16:34:40 +01:00
|
|
|
sha256 = "sha256-6sErta+YnaXe7lHR3kR7UAoWuaw8He7e3gCML9vWYj8=";
|
2018-07-30 19:28:24 +01:00
|
|
|
};
|
|
|
|
|
2021-02-28 11:14:36 +00:00
|
|
|
checkInputs = [
|
2021-07-02 05:21:25 +01:00
|
|
|
editdistance-s
|
2021-02-28 11:14:36 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
2021-02-22 16:53:54 +00:00
|
|
|
|
2021-02-28 11:14:36 +00:00
|
|
|
pythonImportsCheck = [ "identify" ];
|
2018-07-30 19:28:24 +01:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "File identification library for Python";
|
2020-03-03 06:26:53 +00:00
|
|
|
homepage = "https://github.com/chriskuehl/identify";
|
2018-07-30 19:28:24 +01:00
|
|
|
license = licenses.mit;
|
2021-02-28 11:14:36 +00:00
|
|
|
maintainers = with maintainers; [ fab ];
|
2018-07-30 19:28:24 +01:00
|
|
|
};
|
|
|
|
}
|