Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / identify / default.nix
blobd53408aa1aca2b8715b4c021e053efdd038988bd
1 { lib
2 , buildPythonPackage
3 , editdistance-s
4 , fetchFromGitHub
5 , pytestCheckHook
6 , pythonOlder
7 , ukkonen
8 }:
10 buildPythonPackage rec {
11   pname = "identify";
12   version = "2.5.31";
13   format = "setuptools";
15   disabled = pythonOlder "3.8";
17   src = fetchFromGitHub {
18     owner = "pre-commit";
19     repo = pname;
20     rev = "refs/tags/v${version}";
21     hash = "sha256-rov80COnU8e6NXwHkafGGbJyhDTMLUSwxkmjmlw8QYU=";
22   };
24   nativeCheckInputs = [
25     editdistance-s
26     pytestCheckHook
27     ukkonen
28   ];
30   pythonImportsCheck = [
31     "identify"
32   ];
34   meta = with lib; {
35     description = "File identification library for Python";
36     homepage = "https://github.com/chriskuehl/identify";
37     license = licenses.mit;
38     maintainers = with maintainers; [ fab ];
39   };