depot/third_party/nixpkgs/pkgs/development/python-modules/adafruit-platformdetect/default.nix
Default email c6ca5b8f13 Project import generated by Copybara.
GitOrigin-RevId: e4d49de45a3b5dbcb881656b4e3986e666141ea9
2022-07-18 18:21:45 +02:00

38 lines
797 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, setuptools-scm
, pythonOlder
}:
buildPythonPackage rec {
pname = "adafruit-platformdetect";
version = "3.25.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
pname = "Adafruit-PlatformDetect";
inherit version;
hash = "sha256-8K8OKHxuPG5bibb49Epgv9lMuZ7Ipk9753sI22e6j24=";
};
nativeBuildInputs = [
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";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}