blob: ab9f127d93400b0e896226c6136baf1c79f83151 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
setuptools,
}:
buildPythonPackage rec {
pname = "cpe";
version = "1.3.1";
pyproject = true;
src = fetchFromGitHub {
owner = "nilp0inter";
repo = "cpe";
tag = "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.lgpl3Plus;
maintainers = with lib.maintainers; [ tochiaha ];
};
}
|