472aeafc57
GitOrigin-RevId: c31898adf5a8ed202ce5bea9f347b1c6871f32d1
37 lines
809 B
Nix
37 lines
809 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "cpe";
|
|
version = "1.3.1";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.10";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "nilp0inter";
|
|
repo = "cpe";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-QI5XHy2TDSUqK6BZBoFWViBcOKfo+zg0ulzEzF4eg4w=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "cpe" ];
|
|
|
|
meta = {
|
|
changelog = "https://github.com/nilp0inter/cpe/releases/tag/v${version}";
|
|
description = "Common platform enumeration for python";
|
|
homepage = "https://github.com/nilp0inter/cpe";
|
|
license = lib.licenses.gpl3Only;
|
|
maintainers = with lib.maintainers; [ tochiaha ];
|
|
};
|
|
}
|