1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytestCheckHook,
6 pythonOlder,
7 setuptools,
8}:
9
10buildPythonPackage rec {
11 pname = "cpe";
12 version = "1.3.1";
13 pyproject = true;
14
15 disabled = pythonOlder "3.10";
16
17 src = fetchFromGitHub {
18 owner = "nilp0inter";
19 repo = "cpe";
20 tag = "v${version}";
21 hash = "sha256-QI5XHy2TDSUqK6BZBoFWViBcOKfo+zg0ulzEzF4eg4w=";
22 };
23
24 build-system = [ setuptools ];
25
26 nativeCheckInputs = [ pytestCheckHook ];
27
28 pythonImportsCheck = [ "cpe" ];
29
30 meta = {
31 changelog = "https://github.com/nilp0inter/cpe/releases/tag/v${version}";
32 description = "Common platform enumeration for python";
33 homepage = "https://github.com/nilp0inter/cpe";
34 license = lib.licenses.lgpl3Plus;
35 maintainers = with lib.maintainers; [ tochiaha ];
36 };
37}