python312Packages.identify: refactor
This commit is contained in:
parent
9aca4d5e0b
commit
9fafd6e1df
|
@ -1,11 +1,12 @@
|
||||||
{ lib
|
{
|
||||||
, buildPythonPackage
|
lib,
|
||||||
, editdistance-s
|
buildPythonPackage,
|
||||||
, fetchFromGitHub
|
editdistance-s,
|
||||||
, pytestCheckHook
|
fetchFromGitHub,
|
||||||
, pythonOlder
|
pytestCheckHook,
|
||||||
, setuptools
|
pythonOlder,
|
||||||
, ukkonen
|
setuptools,
|
||||||
|
ukkonen,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
|
@ -22,25 +23,21 @@ buildPythonPackage rec {
|
||||||
hash = "sha256-CO+qP0FIUdPFXy6/7FgrKZbUp48XbgqqGV2GAX9ogMY=";
|
hash = "sha256-CO+qP0FIUdPFXy6/7FgrKZbUp48XbgqqGV2GAX9ogMY=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
build-system = [ setuptools ];
|
||||||
setuptools
|
|
||||||
];
|
|
||||||
|
|
||||||
nativeCheckInputs = [
|
dependencies = [
|
||||||
editdistance-s
|
editdistance-s
|
||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
ukkonen
|
ukkonen
|
||||||
];
|
];
|
||||||
|
|
||||||
pythonImportsCheck = [
|
pythonImportsCheck = [ "identify" ];
|
||||||
"identify"
|
|
||||||
];
|
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "File identification library for Python";
|
description = "File identification library for Python";
|
||||||
mainProgram = "identify-cli";
|
|
||||||
homepage = "https://github.com/chriskuehl/identify";
|
homepage = "https://github.com/chriskuehl/identify";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with maintainers; [ fab ];
|
maintainers = with maintainers; [ fab ];
|
||||||
|
mainProgram = "identify-cli";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user