2021-02-28 11:14:36 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pytestCheckHook
|
|
|
|
, editdistance
|
|
|
|
}:
|
2018-07-30 18:28:24 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "identify";
|
2021-02-28 05:47:21 +00:00
|
|
|
version = "1.6.1";
|
2018-07-30 18:28:24 +00:00
|
|
|
|
2021-02-28 11:14:36 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pre-commit";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1sqhqqjp53dwm8yq4nrgggxbvzs3szbg49z5sj2ss9xzlgmimclm";
|
2018-07-30 18:28:24 +00:00
|
|
|
};
|
|
|
|
|
2021-02-28 11:14:36 +00:00
|
|
|
checkInputs = [
|
|
|
|
editdistance
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2021-02-22 16:53:54 +00:00
|
|
|
|
2021-02-28 11:14:36 +00:00
|
|
|
pythonImportsCheck = [ "identify" ];
|
2018-07-30 18:28:24 +00: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 18:28:24 +00:00
|
|
|
license = licenses.mit;
|
2021-02-28 11:14:36 +00:00
|
|
|
maintainers = with maintainers; [ fab ];
|
2018-07-30 18:28:24 +00:00
|
|
|
};
|
|
|
|
}
|