3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/identify/default.nix

34 lines
641 B
Nix
Raw Normal View History

2021-02-28 11:14:36 +00:00
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, editdistance
}:
2018-07-30 19:28:24 +01:00
buildPythonPackage rec {
pname = "identify";
version = "1.6.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}";
sha256 = "1sqhqqjp53dwm8yq4nrgggxbvzs3szbg49z5sj2ss9xzlgmimclm";
2018-07-30 19:28:24 +01:00
};
2021-02-28 11:14:36 +00:00
checkInputs = [
editdistance
pytestCheckHook
];
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";
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
};
}