depot/third_party/nixpkgs/pkgs/development/python-modules/adafruit-platformdetect/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

36 lines
884 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
setuptools-scm,
pythonOlder,
}:
buildPythonPackage rec {
pname = "adafruit-platformdetect";
version = "3.70.1";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
pname = "adafruit_platformdetect";
inherit version;
hash = "sha256-hbvTu3rVleM6OFQb70mq1OlJoe3xpfRJ7JA6djvMr7U=";
};
build-system = [ setuptools-scm ];
# Project has not published tests yet
doCheck = false;
pythonImportsCheck = [ "adafruit_platformdetect" ];
meta = with lib; {
description = "Platform detection for use by Adafruit libraries";
homepage = "https://github.com/adafruit/Adafruit_Python_PlatformDetect";
changelog = "https://github.com/adafruit/Adafruit_Python_PlatformDetect/releases/tag/${version}";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}