depot/third_party/nixpkgs/pkgs/development/python-modules/ppk2-api/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

40 lines
866 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
pyserial,
pythonOlder,
}:
buildPythonPackage rec {
pname = "ppk2-api";
version = "0.9.2";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "IRNAS";
repo = "ppk2-api-python";
rev = "refs/tags/v${version}";
hash = "sha256-fubDFtOXiv2YFYUCOUbuyXs1sHgs0/6ZVK9sAwxQ+Pk=";
};
build-system = [ setuptools ];
dependencies = [ pyserial ];
# Module has no tests
doCheck = false;
pythonImportsCheck = [ "ppk2_api" ];
meta = with lib; {
description = "Power Profiling Kit 2 unofficial Python API";
homepage = "https://github.com/IRNAS/ppk2-api-python";
changelog = "https://github.com/IRNAS/ppk2-api-python/releases/tag/v${version}";
license = licenses.gpl2Only;
maintainers = with maintainers; [ fab ];
};
}