Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / python-modules / adafruit-platformdetect / default.nix
blobac4768c31d8351d79d1649785b23ed3fad2096bf
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , setuptools-scm
5 }:
7 buildPythonPackage rec {
8   pname = "adafruit-platformdetect";
9   version = "3.5.0";
11   src = fetchPypi {
12     pname = "Adafruit-PlatformDetect";
13     inherit version;
14     sha256 = "sha256-QJeb9+iiS4QZ7poOBp5oKD5KuagkG6cfTalbNRwrI1M=";
15   };
17   nativeBuildInputs = [ setuptools-scm ];
19   # Project has not published tests yet
20   doCheck = false;
21   pythonImportsCheck = [ "adafruit_platformdetect" ];
23   meta = with lib; {
24     description = "Platform detection for use by Adafruit libraries";
25     homepage = "https://github.com/adafruit/Adafruit_Python_PlatformDetect";
26     license = with licenses; [ mit ];
27     maintainers = with maintainers; [ fab ];
28   };