Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 setuptools-scm,
6}:
7
8buildPythonPackage rec {
9 pname = "adafruit-platformdetect";
10 version = "3.86.0";
11 pyproject = true;
12
13 src = fetchPypi {
14 pname = "adafruit_platformdetect";
15 inherit version;
16 hash = "sha256-VRcpjJp6Q2FND5u8WkSu0R0VgKgZXagfoJS9Q3v5gS8=";
17 };
18
19 build-system = [ setuptools-scm ];
20
21 # Project has not published tests yet
22 doCheck = false;
23
24 pythonImportsCheck = [ "adafruit_platformdetect" ];
25
26 meta = {
27 description = "Platform detection for use by Adafruit libraries";
28 homepage = "https://github.com/adafruit/Adafruit_Python_PlatformDetect";
29 changelog = "https://github.com/adafruit/Adafruit_Python_PlatformDetect/releases/tag/${version}";
30 license = lib.licenses.mit;
31 maintainers = with lib.maintainers; [ fab ];
32 };
33}