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