nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 pyserial,
7}:
8
9buildPythonPackage rec {
10 pname = "ppk2-api";
11 version = "0.9.2";
12 pyproject = true;
13
14 src = fetchFromGitHub {
15 owner = "IRNAS";
16 repo = "ppk2-api-python";
17 tag = "v${version}";
18 hash = "sha256-fubDFtOXiv2YFYUCOUbuyXs1sHgs0/6ZVK9sAwxQ+Pk=";
19 };
20
21 build-system = [ setuptools ];
22
23 dependencies = [ pyserial ];
24
25 # Module has no tests
26 doCheck = false;
27
28 pythonImportsCheck = [ "ppk2_api" ];
29
30 meta = {
31 description = "Power Profiling Kit 2 unofficial Python API";
32 homepage = "https://github.com/IRNAS/ppk2-api-python";
33 changelog = "https://github.com/IRNAS/ppk2-api-python/releases/tag/v${version}";
34 license = lib.licenses.gpl2Only;
35 maintainers = with lib.maintainers; [ fab ];
36 };
37}