Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / adafruit-platformdetect / default.nix
blob97966e6bb33e697a8841157809f38138bff55084
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , setuptools-scm
5 , pythonOlder
6 }:
8 buildPythonPackage rec {
9   pname = "adafruit-platformdetect";
10   version = "3.54.0";
11   format = "pyproject";
13   disabled = pythonOlder "3.7";
15   src = fetchPypi {
16     pname = "Adafruit-PlatformDetect";
17     inherit version;
18     hash = "sha256-P+f7eBqD0/KIEry/807dQQCvtokB2cYu4i0H6CTYIWg=";
19   };
21   SETUPTOOLS_SCM_PRETEND_VERSION = version;
23   nativeBuildInputs = [
24     setuptools-scm
25   ];
27   # Project has not published tests yet
28   doCheck = false;
30   pythonImportsCheck = [
31     "adafruit_platformdetect"
32   ];
34   meta = with lib; {
35     description = "Platform detection for use by Adafruit libraries";
36     homepage = "https://github.com/adafruit/Adafruit_Python_PlatformDetect";
37     changelog = "https://github.com/adafruit/Adafruit_Python_PlatformDetect/releases/tag/${version}";
38     license = with licenses; [ mit ];
39     maintainers = with maintainers; [ fab ];
40   };