nixpkgs/pkgs/development/python-modules/identify/default.nix

41 lines
743 B
Nix
Raw Normal View History

2021-02-28 11:14:36 +00:00
{ lib
, buildPythonPackage
, editdistance-s
2021-02-28 11:14:36 +00:00
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
, ukkonen
2021-02-28 11:14:36 +00:00
}:
2018-07-30 18:28:24 +00:00
buildPythonPackage rec {
pname = "identify";
version = "2.4.0";
format = "setuptools";
2018-07-30 18:28:24 +00:00
disabled = pythonOlder "3.7";
2021-02-28 11:14:36 +00:00
src = fetchFromGitHub {
owner = "pre-commit";
repo = pname;
rev = "v${version}";
sha256 = "sha256-0J3P3RawafVAfOUhK9qSz5K8y0goMqTjMh5PL60sqME=";
2018-07-30 18:28:24 +00:00
};
2021-02-28 11:14:36 +00:00
checkInputs = [
editdistance-s
2021-02-28 11:14:36 +00:00
pytestCheckHook
ukkonen
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";
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
};
}