mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 10:16:44 +01:00
30 lines
714 B
Nix
30 lines
714 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, setuptools-scm
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "adafruit-platformdetect";
|
|
version = "3.15.3";
|
|
|
|
src = fetchPypi {
|
|
pname = "Adafruit-PlatformDetect";
|
|
inherit version;
|
|
sha256 = "sha256-cmeCh54dwYwbL1AwGrPwTDp4F6VONclV7iu2Sm1g33Q=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|