depot/third_party/nixpkgs/pkgs/development/python-modules/adafruit-platformdetect/default.nix
Default email d419639f9c Project import generated by Copybara.
GitOrigin-RevId: 6b1057b452c55bb3b463f0d7055bc4ec3fd1f381
2021-02-17 18:02:09 +01:00

28 lines
680 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, setuptools-scm
}:
buildPythonPackage rec {
pname = "Adafruit-PlatformDetect";
version = "3.1.1";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-JcqDuTzR2sffEbmhJHRPJggLruc9lKQ4aO/Ab88yo/I=";
};
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 ];
};
}