depot/third_party/nixpkgs/pkgs/development/python-modules/adafruit-platformdetect/default.nix
Default email 73a29e0b97 Project import generated by Copybara.
GitOrigin-RevId: 5bb20f9dc70e9ee16e21cc404b6508654931ce41
2022-01-27 10:19:43 +10:00

35 lines
752 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, setuptools-scm
}:
buildPythonPackage rec {
pname = "adafruit-platformdetect";
version = "3.19.4";
format = "setuptools";
src = fetchPypi {
pname = "Adafruit-PlatformDetect";
inherit version;
sha256 = "sha256-b/uAmrFdAtmXUjaW038mKeZgWHCSIEzCZvCy/9Z3ghw=";
};
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 ];
};
}