2024-07-27 06:49:29 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
setuptools,
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "cpe";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "1.3.0";
|
2024-07-27 06:49:29 +00:00
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.10";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nilp0inter";
|
|
|
|
repo = "cpe";
|
|
|
|
rev = "refs/tags/v${version}";
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-nHFgsFNoDf1VJI7XOe62NOuL67AZCP/LFsymt7Q8L2U=";
|
2024-07-27 06:49:29 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "cpe" ];
|
|
|
|
|
|
|
|
meta = {
|
2024-09-19 14:19:46 +00:00
|
|
|
changelog = "https://github.com/nilp0inter/cpe/releases/tag/v${version}";
|
2024-07-27 06:49:29 +00:00
|
|
|
description = "Common platform enumeration for python";
|
|
|
|
homepage = "https://github.com/nilp0inter/cpe";
|
|
|
|
license = lib.licenses.gpl3Only;
|
|
|
|
maintainers = with lib.maintainers; [ tochiaha ];
|
|
|
|
};
|
|
|
|
}
|